Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.lumongo.cluster.message.Lumongo Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: lumongo.proto
package org.lumongo.cluster.message;
public final class Lumongo {
private Lumongo() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code LMAnalyzer}
*/
public enum LMAnalyzer
implements com.google.protobuf.ProtocolMessageEnum {
/**
* KEYWORD = 1;
*/
KEYWORD(0, 1),
/**
* LC_KEYWORD = 2;
*/
LC_KEYWORD(1, 2),
/**
* WHITESPACE = 3;
*/
WHITESPACE(2, 3),
/**
* LC_WHITESPACE = 4;
*/
LC_WHITESPACE(3, 4),
/**
* STANDARD = 5;
*/
STANDARD(4, 5),
/**
* NUMERIC_INT = 6;
*/
NUMERIC_INT(5, 6),
/**
* NUMERIC_LONG = 7;
*/
NUMERIC_LONG(6, 7),
/**
* NUMERIC_FLOAT = 8;
*/
NUMERIC_FLOAT(7, 8),
/**
* NUMERIC_DOUBLE = 9;
*/
NUMERIC_DOUBLE(8, 9),
/**
* STANDARD_FOLDING = 10;
*/
STANDARD_FOLDING(9, 10),
/**
* STANDARD_NO_STOP = 11;
*/
STANDARD_NO_STOP(10, 11),
/**
* STANDARD_FOLDING_NO_STOP = 12;
*/
STANDARD_FOLDING_NO_STOP(11, 12),
/**
* DATE = 13;
*/
DATE(12, 13),
;
/**
* KEYWORD = 1;
*/
public static final int KEYWORD_VALUE = 1;
/**
* LC_KEYWORD = 2;
*/
public static final int LC_KEYWORD_VALUE = 2;
/**
* WHITESPACE = 3;
*/
public static final int WHITESPACE_VALUE = 3;
/**
* LC_WHITESPACE = 4;
*/
public static final int LC_WHITESPACE_VALUE = 4;
/**
* STANDARD = 5;
*/
public static final int STANDARD_VALUE = 5;
/**
* NUMERIC_INT = 6;
*/
public static final int NUMERIC_INT_VALUE = 6;
/**
* NUMERIC_LONG = 7;
*/
public static final int NUMERIC_LONG_VALUE = 7;
/**
* NUMERIC_FLOAT = 8;
*/
public static final int NUMERIC_FLOAT_VALUE = 8;
/**
* NUMERIC_DOUBLE = 9;
*/
public static final int NUMERIC_DOUBLE_VALUE = 9;
/**
* STANDARD_FOLDING = 10;
*/
public static final int STANDARD_FOLDING_VALUE = 10;
/**
* STANDARD_NO_STOP = 11;
*/
public static final int STANDARD_NO_STOP_VALUE = 11;
/**
* STANDARD_FOLDING_NO_STOP = 12;
*/
public static final int STANDARD_FOLDING_NO_STOP_VALUE = 12;
/**
* DATE = 13;
*/
public static final int DATE_VALUE = 13;
public final int getNumber() { return value; }
public static LMAnalyzer valueOf(int value) {
switch (value) {
case 1: return KEYWORD;
case 2: return LC_KEYWORD;
case 3: return WHITESPACE;
case 4: return LC_WHITESPACE;
case 5: return STANDARD;
case 6: return NUMERIC_INT;
case 7: return NUMERIC_LONG;
case 8: return NUMERIC_FLOAT;
case 9: return NUMERIC_DOUBLE;
case 10: return STANDARD_FOLDING;
case 11: return STANDARD_NO_STOP;
case 12: return STANDARD_FOLDING_NO_STOP;
case 13: return DATE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LMAnalyzer findValueByNumber(int number) {
return LMAnalyzer.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.getDescriptor().getEnumTypes().get(0);
}
private static final LMAnalyzer[] VALUES = values();
public static LMAnalyzer valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private LMAnalyzer(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:LMAnalyzer)
}
/**
* Protobuf enum {@code FetchType}
*/
public enum FetchType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FULL = 1;
*/
FULL(0, 1),
/**
* META = 2;
*/
META(1, 2),
/**
* NONE = 3;
*/
NONE(2, 3),
;
/**
* FULL = 1;
*/
public static final int FULL_VALUE = 1;
/**
* META = 2;
*/
public static final int META_VALUE = 2;
/**
* NONE = 3;
*/
public static final int NONE_VALUE = 3;
public final int getNumber() { return value; }
public static FetchType valueOf(int value) {
switch (value) {
case 1: return FULL;
case 2: return META;
case 3: return NONE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FetchType findValueByNumber(int number) {
return FetchType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.getDescriptor().getEnumTypes().get(1);
}
private static final FetchType[] VALUES = values();
public static FetchType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private FetchType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FetchType)
}
public interface GetMembersRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetMembersRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code GetMembersRequest}
*/
public static final class GetMembersRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetMembersRequest)
GetMembersRequestOrBuilder {
// Use GetMembersRequest.newBuilder() to construct.
private GetMembersRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetMembersRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetMembersRequest defaultInstance;
public static GetMembersRequest getDefaultInstance() {
return defaultInstance;
}
public GetMembersRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetMembersRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetMembersRequest.class, org.lumongo.cluster.message.Lumongo.GetMembersRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetMembersRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetMembersRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetMembersRequest 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;
}
/**
* Protobuf type {@code GetMembersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetMembersRequest)
org.lumongo.cluster.message.Lumongo.GetMembersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetMembersRequest.class, org.lumongo.cluster.message.Lumongo.GetMembersRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetMembersRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetMembersRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetMembersRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetMembersRequest build() {
org.lumongo.cluster.message.Lumongo.GetMembersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetMembersRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.GetMembersRequest result = new org.lumongo.cluster.message.Lumongo.GetMembersRequest(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetMembersRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetMembersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetMembersRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.GetMembersRequest.getDefaultInstance()) return this;
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 {
org.lumongo.cluster.message.Lumongo.GetMembersRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetMembersRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:GetMembersRequest)
}
static {
defaultInstance = new GetMembersRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetMembersRequest)
}
public interface LMMemberOrBuilder extends
// @@protoc_insertion_point(interface_extends:LMMember)
com.google.protobuf.MessageOrBuilder {
/**
* required string serverAddress = 1;
*/
boolean hasServerAddress();
/**
* required string serverAddress = 1;
*/
java.lang.String getServerAddress();
/**
* required string serverAddress = 1;
*/
com.google.protobuf.ByteString
getServerAddressBytes();
/**
* required uint32 externalPort = 2;
*/
boolean hasExternalPort();
/**
* required uint32 externalPort = 2;
*/
int getExternalPort();
/**
* optional uint32 internalPort = 3;
*/
boolean hasInternalPort();
/**
* optional uint32 internalPort = 3;
*/
int getInternalPort();
/**
* optional uint32 hazelcastPort = 4;
*/
boolean hasHazelcastPort();
/**
* optional uint32 hazelcastPort = 4;
*/
int getHazelcastPort();
/**
* optional uint32 restPort = 5;
*/
boolean hasRestPort();
/**
* optional uint32 restPort = 5;
*/
int getRestPort();
}
/**
* Protobuf type {@code LMMember}
*/
public static final class LMMember extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:LMMember)
LMMemberOrBuilder {
// Use LMMember.newBuilder() to construct.
private LMMember(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LMMember(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LMMember defaultInstance;
public static LMMember getDefaultInstance() {
return defaultInstance;
}
public LMMember getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LMMember(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
serverAddress_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
externalPort_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
internalPort_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
hazelcastPort_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
restPort_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMMember_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMMember_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.LMMember.class, org.lumongo.cluster.message.Lumongo.LMMember.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public LMMember parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LMMember(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int SERVERADDRESS_FIELD_NUMBER = 1;
private java.lang.Object serverAddress_;
/**
* required string serverAddress = 1;
*/
public boolean hasServerAddress() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string serverAddress = 1;
*/
public java.lang.String getServerAddress() {
java.lang.Object ref = serverAddress_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
serverAddress_ = s;
}
return s;
}
}
/**
* required string serverAddress = 1;
*/
public com.google.protobuf.ByteString
getServerAddressBytes() {
java.lang.Object ref = serverAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTERNALPORT_FIELD_NUMBER = 2;
private int externalPort_;
/**
* required uint32 externalPort = 2;
*/
public boolean hasExternalPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 externalPort = 2;
*/
public int getExternalPort() {
return externalPort_;
}
public static final int INTERNALPORT_FIELD_NUMBER = 3;
private int internalPort_;
/**
* optional uint32 internalPort = 3;
*/
public boolean hasInternalPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 internalPort = 3;
*/
public int getInternalPort() {
return internalPort_;
}
public static final int HAZELCASTPORT_FIELD_NUMBER = 4;
private int hazelcastPort_;
/**
* optional uint32 hazelcastPort = 4;
*/
public boolean hasHazelcastPort() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 hazelcastPort = 4;
*/
public int getHazelcastPort() {
return hazelcastPort_;
}
public static final int RESTPORT_FIELD_NUMBER = 5;
private int restPort_;
/**
* optional uint32 restPort = 5;
*/
public boolean hasRestPort() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 restPort = 5;
*/
public int getRestPort() {
return restPort_;
}
private void initFields() {
serverAddress_ = "";
externalPort_ = 0;
internalPort_ = 0;
hazelcastPort_ = 0;
restPort_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasServerAddress()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasExternalPort()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getServerAddressBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, externalPort_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, internalPort_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(4, hazelcastPort_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, restPort_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getServerAddressBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, externalPort_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, internalPort_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, hazelcastPort_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, restPort_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.LMMember parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.LMMember 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;
}
/**
* Protobuf type {@code LMMember}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:LMMember)
org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMMember_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMMember_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.LMMember.class, org.lumongo.cluster.message.Lumongo.LMMember.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.LMMember.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
serverAddress_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
externalPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
internalPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
hazelcastPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
restPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMMember_descriptor;
}
public org.lumongo.cluster.message.Lumongo.LMMember getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.LMMember.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.LMMember build() {
org.lumongo.cluster.message.Lumongo.LMMember result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.LMMember buildPartial() {
org.lumongo.cluster.message.Lumongo.LMMember result = new org.lumongo.cluster.message.Lumongo.LMMember(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.serverAddress_ = serverAddress_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.externalPort_ = externalPort_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.internalPort_ = internalPort_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.hazelcastPort_ = hazelcastPort_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.restPort_ = restPort_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.LMMember) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.LMMember)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.LMMember other) {
if (other == org.lumongo.cluster.message.Lumongo.LMMember.getDefaultInstance()) return this;
if (other.hasServerAddress()) {
bitField0_ |= 0x00000001;
serverAddress_ = other.serverAddress_;
onChanged();
}
if (other.hasExternalPort()) {
setExternalPort(other.getExternalPort());
}
if (other.hasInternalPort()) {
setInternalPort(other.getInternalPort());
}
if (other.hasHazelcastPort()) {
setHazelcastPort(other.getHazelcastPort());
}
if (other.hasRestPort()) {
setRestPort(other.getRestPort());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasServerAddress()) {
return false;
}
if (!hasExternalPort()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.LMMember parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.LMMember) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object serverAddress_ = "";
/**
* required string serverAddress = 1;
*/
public boolean hasServerAddress() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string serverAddress = 1;
*/
public java.lang.String getServerAddress() {
java.lang.Object ref = serverAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
serverAddress_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string serverAddress = 1;
*/
public com.google.protobuf.ByteString
getServerAddressBytes() {
java.lang.Object ref = serverAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string serverAddress = 1;
*/
public Builder setServerAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
serverAddress_ = value;
onChanged();
return this;
}
/**
* required string serverAddress = 1;
*/
public Builder clearServerAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
serverAddress_ = getDefaultInstance().getServerAddress();
onChanged();
return this;
}
/**
* required string serverAddress = 1;
*/
public Builder setServerAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
serverAddress_ = value;
onChanged();
return this;
}
private int externalPort_ ;
/**
* required uint32 externalPort = 2;
*/
public boolean hasExternalPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 externalPort = 2;
*/
public int getExternalPort() {
return externalPort_;
}
/**
* required uint32 externalPort = 2;
*/
public Builder setExternalPort(int value) {
bitField0_ |= 0x00000002;
externalPort_ = value;
onChanged();
return this;
}
/**
* required uint32 externalPort = 2;
*/
public Builder clearExternalPort() {
bitField0_ = (bitField0_ & ~0x00000002);
externalPort_ = 0;
onChanged();
return this;
}
private int internalPort_ ;
/**
* optional uint32 internalPort = 3;
*/
public boolean hasInternalPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 internalPort = 3;
*/
public int getInternalPort() {
return internalPort_;
}
/**
* optional uint32 internalPort = 3;
*/
public Builder setInternalPort(int value) {
bitField0_ |= 0x00000004;
internalPort_ = value;
onChanged();
return this;
}
/**
* optional uint32 internalPort = 3;
*/
public Builder clearInternalPort() {
bitField0_ = (bitField0_ & ~0x00000004);
internalPort_ = 0;
onChanged();
return this;
}
private int hazelcastPort_ ;
/**
* optional uint32 hazelcastPort = 4;
*/
public boolean hasHazelcastPort() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 hazelcastPort = 4;
*/
public int getHazelcastPort() {
return hazelcastPort_;
}
/**
* optional uint32 hazelcastPort = 4;
*/
public Builder setHazelcastPort(int value) {
bitField0_ |= 0x00000008;
hazelcastPort_ = value;
onChanged();
return this;
}
/**
* optional uint32 hazelcastPort = 4;
*/
public Builder clearHazelcastPort() {
bitField0_ = (bitField0_ & ~0x00000008);
hazelcastPort_ = 0;
onChanged();
return this;
}
private int restPort_ ;
/**
* optional uint32 restPort = 5;
*/
public boolean hasRestPort() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 restPort = 5;
*/
public int getRestPort() {
return restPort_;
}
/**
* optional uint32 restPort = 5;
*/
public Builder setRestPort(int value) {
bitField0_ |= 0x00000010;
restPort_ = value;
onChanged();
return this;
}
/**
* optional uint32 restPort = 5;
*/
public Builder clearRestPort() {
bitField0_ = (bitField0_ & ~0x00000010);
restPort_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:LMMember)
}
static {
defaultInstance = new LMMember(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:LMMember)
}
public interface GetMembersResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetMembersResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .LMMember member = 1;
*/
java.util.List
getMemberList();
/**
* repeated .LMMember member = 1;
*/
org.lumongo.cluster.message.Lumongo.LMMember getMember(int index);
/**
* repeated .LMMember member = 1;
*/
int getMemberCount();
/**
* repeated .LMMember member = 1;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder>
getMemberOrBuilderList();
/**
* repeated .LMMember member = 1;
*/
org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder getMemberOrBuilder(
int index);
/**
* repeated .IndexMapping indexMapping = 2;
*/
java.util.List
getIndexMappingList();
/**
* repeated .IndexMapping indexMapping = 2;
*/
org.lumongo.cluster.message.Lumongo.IndexMapping getIndexMapping(int index);
/**
* repeated .IndexMapping indexMapping = 2;
*/
int getIndexMappingCount();
/**
* repeated .IndexMapping indexMapping = 2;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder>
getIndexMappingOrBuilderList();
/**
* repeated .IndexMapping indexMapping = 2;
*/
org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder getIndexMappingOrBuilder(
int index);
}
/**
* Protobuf type {@code GetMembersResponse}
*/
public static final class GetMembersResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetMembersResponse)
GetMembersResponseOrBuilder {
// Use GetMembersResponse.newBuilder() to construct.
private GetMembersResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetMembersResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetMembersResponse defaultInstance;
public static GetMembersResponse getDefaultInstance() {
return defaultInstance;
}
public GetMembersResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetMembersResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
member_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
member_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.LMMember.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
indexMapping_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
indexMapping_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.IndexMapping.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
member_ = java.util.Collections.unmodifiableList(member_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
indexMapping_ = java.util.Collections.unmodifiableList(indexMapping_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetMembersResponse.class, org.lumongo.cluster.message.Lumongo.GetMembersResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetMembersResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetMembersResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int MEMBER_FIELD_NUMBER = 1;
private java.util.List member_;
/**
* repeated .LMMember member = 1;
*/
public java.util.List getMemberList() {
return member_;
}
/**
* repeated .LMMember member = 1;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder>
getMemberOrBuilderList() {
return member_;
}
/**
* repeated .LMMember member = 1;
*/
public int getMemberCount() {
return member_.size();
}
/**
* repeated .LMMember member = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMMember getMember(int index) {
return member_.get(index);
}
/**
* repeated .LMMember member = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder getMemberOrBuilder(
int index) {
return member_.get(index);
}
public static final int INDEXMAPPING_FIELD_NUMBER = 2;
private java.util.List indexMapping_;
/**
* repeated .IndexMapping indexMapping = 2;
*/
public java.util.List getIndexMappingList() {
return indexMapping_;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder>
getIndexMappingOrBuilderList() {
return indexMapping_;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public int getIndexMappingCount() {
return indexMapping_.size();
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexMapping getIndexMapping(int index) {
return indexMapping_.get(index);
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder getIndexMappingOrBuilder(
int index) {
return indexMapping_.get(index);
}
private void initFields() {
member_ = java.util.Collections.emptyList();
indexMapping_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getMemberCount(); i++) {
if (!getMember(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getIndexMappingCount(); i++) {
if (!getIndexMapping(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < member_.size(); i++) {
output.writeMessage(1, member_.get(i));
}
for (int i = 0; i < indexMapping_.size(); i++) {
output.writeMessage(2, indexMapping_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < member_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, member_.get(i));
}
for (int i = 0; i < indexMapping_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, indexMapping_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetMembersResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetMembersResponse 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;
}
/**
* Protobuf type {@code GetMembersResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetMembersResponse)
org.lumongo.cluster.message.Lumongo.GetMembersResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetMembersResponse.class, org.lumongo.cluster.message.Lumongo.GetMembersResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetMembersResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMemberFieldBuilder();
getIndexMappingFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (memberBuilder_ == null) {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
memberBuilder_.clear();
}
if (indexMappingBuilder_ == null) {
indexMapping_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
indexMappingBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetMembersResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetMembersResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetMembersResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetMembersResponse build() {
org.lumongo.cluster.message.Lumongo.GetMembersResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetMembersResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.GetMembersResponse result = new org.lumongo.cluster.message.Lumongo.GetMembersResponse(this);
int from_bitField0_ = bitField0_;
if (memberBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
member_ = java.util.Collections.unmodifiableList(member_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.member_ = member_;
} else {
result.member_ = memberBuilder_.build();
}
if (indexMappingBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
indexMapping_ = java.util.Collections.unmodifiableList(indexMapping_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.indexMapping_ = indexMapping_;
} else {
result.indexMapping_ = indexMappingBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetMembersResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetMembersResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetMembersResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.GetMembersResponse.getDefaultInstance()) return this;
if (memberBuilder_ == null) {
if (!other.member_.isEmpty()) {
if (member_.isEmpty()) {
member_ = other.member_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMemberIsMutable();
member_.addAll(other.member_);
}
onChanged();
}
} else {
if (!other.member_.isEmpty()) {
if (memberBuilder_.isEmpty()) {
memberBuilder_.dispose();
memberBuilder_ = null;
member_ = other.member_;
bitField0_ = (bitField0_ & ~0x00000001);
memberBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMemberFieldBuilder() : null;
} else {
memberBuilder_.addAllMessages(other.member_);
}
}
}
if (indexMappingBuilder_ == null) {
if (!other.indexMapping_.isEmpty()) {
if (indexMapping_.isEmpty()) {
indexMapping_ = other.indexMapping_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIndexMappingIsMutable();
indexMapping_.addAll(other.indexMapping_);
}
onChanged();
}
} else {
if (!other.indexMapping_.isEmpty()) {
if (indexMappingBuilder_.isEmpty()) {
indexMappingBuilder_.dispose();
indexMappingBuilder_ = null;
indexMapping_ = other.indexMapping_;
bitField0_ = (bitField0_ & ~0x00000002);
indexMappingBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getIndexMappingFieldBuilder() : null;
} else {
indexMappingBuilder_.addAllMessages(other.indexMapping_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getMemberCount(); i++) {
if (!getMember(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getIndexMappingCount(); i++) {
if (!getIndexMapping(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.GetMembersResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetMembersResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List member_ =
java.util.Collections.emptyList();
private void ensureMemberIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
member_ = new java.util.ArrayList(member_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMMember, org.lumongo.cluster.message.Lumongo.LMMember.Builder, org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder> memberBuilder_;
/**
* repeated .LMMember member = 1;
*/
public java.util.List getMemberList() {
if (memberBuilder_ == null) {
return java.util.Collections.unmodifiableList(member_);
} else {
return memberBuilder_.getMessageList();
}
}
/**
* repeated .LMMember member = 1;
*/
public int getMemberCount() {
if (memberBuilder_ == null) {
return member_.size();
} else {
return memberBuilder_.getCount();
}
}
/**
* repeated .LMMember member = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMMember getMember(int index) {
if (memberBuilder_ == null) {
return member_.get(index);
} else {
return memberBuilder_.getMessage(index);
}
}
/**
* repeated .LMMember member = 1;
*/
public Builder setMember(
int index, org.lumongo.cluster.message.Lumongo.LMMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.set(index, value);
onChanged();
} else {
memberBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .LMMember member = 1;
*/
public Builder setMember(
int index, org.lumongo.cluster.message.Lumongo.LMMember.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.set(index, builderForValue.build());
onChanged();
} else {
memberBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .LMMember member = 1;
*/
public Builder addMember(org.lumongo.cluster.message.Lumongo.LMMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.add(value);
onChanged();
} else {
memberBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .LMMember member = 1;
*/
public Builder addMember(
int index, org.lumongo.cluster.message.Lumongo.LMMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.add(index, value);
onChanged();
} else {
memberBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .LMMember member = 1;
*/
public Builder addMember(
org.lumongo.cluster.message.Lumongo.LMMember.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.add(builderForValue.build());
onChanged();
} else {
memberBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .LMMember member = 1;
*/
public Builder addMember(
int index, org.lumongo.cluster.message.Lumongo.LMMember.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.add(index, builderForValue.build());
onChanged();
} else {
memberBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .LMMember member = 1;
*/
public Builder addAllMember(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.LMMember> values) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, member_);
onChanged();
} else {
memberBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .LMMember member = 1;
*/
public Builder clearMember() {
if (memberBuilder_ == null) {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
memberBuilder_.clear();
}
return this;
}
/**
* repeated .LMMember member = 1;
*/
public Builder removeMember(int index) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.remove(index);
onChanged();
} else {
memberBuilder_.remove(index);
}
return this;
}
/**
* repeated .LMMember member = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMMember.Builder getMemberBuilder(
int index) {
return getMemberFieldBuilder().getBuilder(index);
}
/**
* repeated .LMMember member = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder getMemberOrBuilder(
int index) {
if (memberBuilder_ == null) {
return member_.get(index); } else {
return memberBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .LMMember member = 1;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder>
getMemberOrBuilderList() {
if (memberBuilder_ != null) {
return memberBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(member_);
}
}
/**
* repeated .LMMember member = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMMember.Builder addMemberBuilder() {
return getMemberFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.LMMember.getDefaultInstance());
}
/**
* repeated .LMMember member = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMMember.Builder addMemberBuilder(
int index) {
return getMemberFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.LMMember.getDefaultInstance());
}
/**
* repeated .LMMember member = 1;
*/
public java.util.List
getMemberBuilderList() {
return getMemberFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMMember, org.lumongo.cluster.message.Lumongo.LMMember.Builder, org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder>
getMemberFieldBuilder() {
if (memberBuilder_ == null) {
memberBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMMember, org.lumongo.cluster.message.Lumongo.LMMember.Builder, org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder>(
member_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
member_ = null;
}
return memberBuilder_;
}
private java.util.List indexMapping_ =
java.util.Collections.emptyList();
private void ensureIndexMappingIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
indexMapping_ = new java.util.ArrayList(indexMapping_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexMapping, org.lumongo.cluster.message.Lumongo.IndexMapping.Builder, org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder> indexMappingBuilder_;
/**
* repeated .IndexMapping indexMapping = 2;
*/
public java.util.List getIndexMappingList() {
if (indexMappingBuilder_ == null) {
return java.util.Collections.unmodifiableList(indexMapping_);
} else {
return indexMappingBuilder_.getMessageList();
}
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public int getIndexMappingCount() {
if (indexMappingBuilder_ == null) {
return indexMapping_.size();
} else {
return indexMappingBuilder_.getCount();
}
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexMapping getIndexMapping(int index) {
if (indexMappingBuilder_ == null) {
return indexMapping_.get(index);
} else {
return indexMappingBuilder_.getMessage(index);
}
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public Builder setIndexMapping(
int index, org.lumongo.cluster.message.Lumongo.IndexMapping value) {
if (indexMappingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexMappingIsMutable();
indexMapping_.set(index, value);
onChanged();
} else {
indexMappingBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public Builder setIndexMapping(
int index, org.lumongo.cluster.message.Lumongo.IndexMapping.Builder builderForValue) {
if (indexMappingBuilder_ == null) {
ensureIndexMappingIsMutable();
indexMapping_.set(index, builderForValue.build());
onChanged();
} else {
indexMappingBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public Builder addIndexMapping(org.lumongo.cluster.message.Lumongo.IndexMapping value) {
if (indexMappingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexMappingIsMutable();
indexMapping_.add(value);
onChanged();
} else {
indexMappingBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public Builder addIndexMapping(
int index, org.lumongo.cluster.message.Lumongo.IndexMapping value) {
if (indexMappingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexMappingIsMutable();
indexMapping_.add(index, value);
onChanged();
} else {
indexMappingBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public Builder addIndexMapping(
org.lumongo.cluster.message.Lumongo.IndexMapping.Builder builderForValue) {
if (indexMappingBuilder_ == null) {
ensureIndexMappingIsMutable();
indexMapping_.add(builderForValue.build());
onChanged();
} else {
indexMappingBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public Builder addIndexMapping(
int index, org.lumongo.cluster.message.Lumongo.IndexMapping.Builder builderForValue) {
if (indexMappingBuilder_ == null) {
ensureIndexMappingIsMutable();
indexMapping_.add(index, builderForValue.build());
onChanged();
} else {
indexMappingBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public Builder addAllIndexMapping(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.IndexMapping> values) {
if (indexMappingBuilder_ == null) {
ensureIndexMappingIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indexMapping_);
onChanged();
} else {
indexMappingBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public Builder clearIndexMapping() {
if (indexMappingBuilder_ == null) {
indexMapping_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
indexMappingBuilder_.clear();
}
return this;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public Builder removeIndexMapping(int index) {
if (indexMappingBuilder_ == null) {
ensureIndexMappingIsMutable();
indexMapping_.remove(index);
onChanged();
} else {
indexMappingBuilder_.remove(index);
}
return this;
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexMapping.Builder getIndexMappingBuilder(
int index) {
return getIndexMappingFieldBuilder().getBuilder(index);
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder getIndexMappingOrBuilder(
int index) {
if (indexMappingBuilder_ == null) {
return indexMapping_.get(index); } else {
return indexMappingBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder>
getIndexMappingOrBuilderList() {
if (indexMappingBuilder_ != null) {
return indexMappingBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(indexMapping_);
}
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexMapping.Builder addIndexMappingBuilder() {
return getIndexMappingFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.IndexMapping.getDefaultInstance());
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexMapping.Builder addIndexMappingBuilder(
int index) {
return getIndexMappingFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.IndexMapping.getDefaultInstance());
}
/**
* repeated .IndexMapping indexMapping = 2;
*/
public java.util.List
getIndexMappingBuilderList() {
return getIndexMappingFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexMapping, org.lumongo.cluster.message.Lumongo.IndexMapping.Builder, org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder>
getIndexMappingFieldBuilder() {
if (indexMappingBuilder_ == null) {
indexMappingBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexMapping, org.lumongo.cluster.message.Lumongo.IndexMapping.Builder, org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder>(
indexMapping_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
indexMapping_ = null;
}
return indexMappingBuilder_;
}
// @@protoc_insertion_point(builder_scope:GetMembersResponse)
}
static {
defaultInstance = new GetMembersResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetMembersResponse)
}
public interface IndexMappingOrBuilder extends
// @@protoc_insertion_point(interface_extends:IndexMapping)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexName = 1;
*/
boolean hasIndexName();
/**
* required string indexName = 1;
*/
java.lang.String getIndexName();
/**
* required string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
/**
* required uint32 numberOfSegments = 2;
*/
boolean hasNumberOfSegments();
/**
* required uint32 numberOfSegments = 2;
*/
int getNumberOfSegments();
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
java.util.List
getSegmentMappingList();
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
org.lumongo.cluster.message.Lumongo.SegmentMapping getSegmentMapping(int index);
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
int getSegmentMappingCount();
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder>
getSegmentMappingOrBuilderList();
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder getSegmentMappingOrBuilder(
int index);
}
/**
* Protobuf type {@code IndexMapping}
*/
public static final class IndexMapping extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:IndexMapping)
IndexMappingOrBuilder {
// Use IndexMapping.newBuilder() to construct.
private IndexMapping(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IndexMapping(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IndexMapping defaultInstance;
public static IndexMapping getDefaultInstance() {
return defaultInstance;
}
public IndexMapping getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexMapping(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexName_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
numberOfSegments_ = input.readUInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
segmentMapping_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
segmentMapping_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.SegmentMapping.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
segmentMapping_ = java.util.Collections.unmodifiableList(segmentMapping_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexMapping_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexMapping.class, org.lumongo.cluster.message.Lumongo.IndexMapping.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IndexMapping parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexMapping(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXNAME_FIELD_NUMBER = 1;
private java.lang.Object indexName_;
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBEROFSEGMENTS_FIELD_NUMBER = 2;
private int numberOfSegments_;
/**
* required uint32 numberOfSegments = 2;
*/
public boolean hasNumberOfSegments() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 numberOfSegments = 2;
*/
public int getNumberOfSegments() {
return numberOfSegments_;
}
public static final int SEGMENTMAPPING_FIELD_NUMBER = 3;
private java.util.List segmentMapping_;
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public java.util.List getSegmentMappingList() {
return segmentMapping_;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder>
getSegmentMappingOrBuilderList() {
return segmentMapping_;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public int getSegmentMappingCount() {
return segmentMapping_.size();
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public org.lumongo.cluster.message.Lumongo.SegmentMapping getSegmentMapping(int index) {
return segmentMapping_.get(index);
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder getSegmentMappingOrBuilder(
int index) {
return segmentMapping_.get(index);
}
private void initFields() {
indexName_ = "";
numberOfSegments_ = 0;
segmentMapping_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasNumberOfSegments()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getSegmentMappingCount(); i++) {
if (!getSegmentMapping(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, numberOfSegments_);
}
for (int i = 0; i < segmentMapping_.size(); i++) {
output.writeMessage(3, segmentMapping_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, numberOfSegments_);
}
for (int i = 0; i < segmentMapping_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, segmentMapping_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexMapping parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.IndexMapping 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;
}
/**
* Protobuf type {@code IndexMapping}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:IndexMapping)
org.lumongo.cluster.message.Lumongo.IndexMappingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexMapping_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexMapping.class, org.lumongo.cluster.message.Lumongo.IndexMapping.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.IndexMapping.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getSegmentMappingFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
numberOfSegments_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (segmentMappingBuilder_ == null) {
segmentMapping_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
segmentMappingBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexMapping_descriptor;
}
public org.lumongo.cluster.message.Lumongo.IndexMapping getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.IndexMapping.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.IndexMapping build() {
org.lumongo.cluster.message.Lumongo.IndexMapping result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.IndexMapping buildPartial() {
org.lumongo.cluster.message.Lumongo.IndexMapping result = new org.lumongo.cluster.message.Lumongo.IndexMapping(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexName_ = indexName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.numberOfSegments_ = numberOfSegments_;
if (segmentMappingBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
segmentMapping_ = java.util.Collections.unmodifiableList(segmentMapping_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.segmentMapping_ = segmentMapping_;
} else {
result.segmentMapping_ = segmentMappingBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.IndexMapping) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.IndexMapping)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.IndexMapping other) {
if (other == org.lumongo.cluster.message.Lumongo.IndexMapping.getDefaultInstance()) return this;
if (other.hasIndexName()) {
bitField0_ |= 0x00000001;
indexName_ = other.indexName_;
onChanged();
}
if (other.hasNumberOfSegments()) {
setNumberOfSegments(other.getNumberOfSegments());
}
if (segmentMappingBuilder_ == null) {
if (!other.segmentMapping_.isEmpty()) {
if (segmentMapping_.isEmpty()) {
segmentMapping_ = other.segmentMapping_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSegmentMappingIsMutable();
segmentMapping_.addAll(other.segmentMapping_);
}
onChanged();
}
} else {
if (!other.segmentMapping_.isEmpty()) {
if (segmentMappingBuilder_.isEmpty()) {
segmentMappingBuilder_.dispose();
segmentMappingBuilder_ = null;
segmentMapping_ = other.segmentMapping_;
bitField0_ = (bitField0_ & ~0x00000004);
segmentMappingBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getSegmentMappingFieldBuilder() : null;
} else {
segmentMappingBuilder_.addAllMessages(other.segmentMapping_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexName()) {
return false;
}
if (!hasNumberOfSegments()) {
return false;
}
for (int i = 0; i < getSegmentMappingCount(); i++) {
if (!getSegmentMapping(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.IndexMapping parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.IndexMapping) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 1;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
private int numberOfSegments_ ;
/**
* required uint32 numberOfSegments = 2;
*/
public boolean hasNumberOfSegments() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 numberOfSegments = 2;
*/
public int getNumberOfSegments() {
return numberOfSegments_;
}
/**
* required uint32 numberOfSegments = 2;
*/
public Builder setNumberOfSegments(int value) {
bitField0_ |= 0x00000002;
numberOfSegments_ = value;
onChanged();
return this;
}
/**
* required uint32 numberOfSegments = 2;
*/
public Builder clearNumberOfSegments() {
bitField0_ = (bitField0_ & ~0x00000002);
numberOfSegments_ = 0;
onChanged();
return this;
}
private java.util.List segmentMapping_ =
java.util.Collections.emptyList();
private void ensureSegmentMappingIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
segmentMapping_ = new java.util.ArrayList(segmentMapping_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.SegmentMapping, org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder, org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder> segmentMappingBuilder_;
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public java.util.List getSegmentMappingList() {
if (segmentMappingBuilder_ == null) {
return java.util.Collections.unmodifiableList(segmentMapping_);
} else {
return segmentMappingBuilder_.getMessageList();
}
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public int getSegmentMappingCount() {
if (segmentMappingBuilder_ == null) {
return segmentMapping_.size();
} else {
return segmentMappingBuilder_.getCount();
}
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public org.lumongo.cluster.message.Lumongo.SegmentMapping getSegmentMapping(int index) {
if (segmentMappingBuilder_ == null) {
return segmentMapping_.get(index);
} else {
return segmentMappingBuilder_.getMessage(index);
}
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public Builder setSegmentMapping(
int index, org.lumongo.cluster.message.Lumongo.SegmentMapping value) {
if (segmentMappingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentMappingIsMutable();
segmentMapping_.set(index, value);
onChanged();
} else {
segmentMappingBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public Builder setSegmentMapping(
int index, org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder builderForValue) {
if (segmentMappingBuilder_ == null) {
ensureSegmentMappingIsMutable();
segmentMapping_.set(index, builderForValue.build());
onChanged();
} else {
segmentMappingBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public Builder addSegmentMapping(org.lumongo.cluster.message.Lumongo.SegmentMapping value) {
if (segmentMappingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentMappingIsMutable();
segmentMapping_.add(value);
onChanged();
} else {
segmentMappingBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public Builder addSegmentMapping(
int index, org.lumongo.cluster.message.Lumongo.SegmentMapping value) {
if (segmentMappingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentMappingIsMutable();
segmentMapping_.add(index, value);
onChanged();
} else {
segmentMappingBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public Builder addSegmentMapping(
org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder builderForValue) {
if (segmentMappingBuilder_ == null) {
ensureSegmentMappingIsMutable();
segmentMapping_.add(builderForValue.build());
onChanged();
} else {
segmentMappingBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public Builder addSegmentMapping(
int index, org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder builderForValue) {
if (segmentMappingBuilder_ == null) {
ensureSegmentMappingIsMutable();
segmentMapping_.add(index, builderForValue.build());
onChanged();
} else {
segmentMappingBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public Builder addAllSegmentMapping(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.SegmentMapping> values) {
if (segmentMappingBuilder_ == null) {
ensureSegmentMappingIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, segmentMapping_);
onChanged();
} else {
segmentMappingBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public Builder clearSegmentMapping() {
if (segmentMappingBuilder_ == null) {
segmentMapping_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
segmentMappingBuilder_.clear();
}
return this;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public Builder removeSegmentMapping(int index) {
if (segmentMappingBuilder_ == null) {
ensureSegmentMappingIsMutable();
segmentMapping_.remove(index);
onChanged();
} else {
segmentMappingBuilder_.remove(index);
}
return this;
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder getSegmentMappingBuilder(
int index) {
return getSegmentMappingFieldBuilder().getBuilder(index);
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder getSegmentMappingOrBuilder(
int index) {
if (segmentMappingBuilder_ == null) {
return segmentMapping_.get(index); } else {
return segmentMappingBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder>
getSegmentMappingOrBuilderList() {
if (segmentMappingBuilder_ != null) {
return segmentMappingBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(segmentMapping_);
}
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder addSegmentMappingBuilder() {
return getSegmentMappingFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.SegmentMapping.getDefaultInstance());
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder addSegmentMappingBuilder(
int index) {
return getSegmentMappingFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.SegmentMapping.getDefaultInstance());
}
/**
* repeated .SegmentMapping segmentMapping = 3;
*/
public java.util.List
getSegmentMappingBuilderList() {
return getSegmentMappingFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.SegmentMapping, org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder, org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder>
getSegmentMappingFieldBuilder() {
if (segmentMappingBuilder_ == null) {
segmentMappingBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.SegmentMapping, org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder, org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder>(
segmentMapping_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
segmentMapping_ = null;
}
return segmentMappingBuilder_;
}
// @@protoc_insertion_point(builder_scope:IndexMapping)
}
static {
defaultInstance = new IndexMapping(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IndexMapping)
}
public interface SegmentMappingOrBuilder extends
// @@protoc_insertion_point(interface_extends:SegmentMapping)
com.google.protobuf.MessageOrBuilder {
/**
* required uint32 segmentNumber = 1;
*/
boolean hasSegmentNumber();
/**
* required uint32 segmentNumber = 1;
*/
int getSegmentNumber();
/**
* required .LMMember member = 2;
*/
boolean hasMember();
/**
* required .LMMember member = 2;
*/
org.lumongo.cluster.message.Lumongo.LMMember getMember();
/**
* required .LMMember member = 2;
*/
org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder getMemberOrBuilder();
}
/**
* Protobuf type {@code SegmentMapping}
*/
public static final class SegmentMapping extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:SegmentMapping)
SegmentMappingOrBuilder {
// Use SegmentMapping.newBuilder() to construct.
private SegmentMapping(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SegmentMapping(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SegmentMapping defaultInstance;
public static SegmentMapping getDefaultInstance() {
return defaultInstance;
}
public SegmentMapping getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SegmentMapping(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
segmentNumber_ = input.readUInt32();
break;
}
case 18: {
org.lumongo.cluster.message.Lumongo.LMMember.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = member_.toBuilder();
}
member_ = input.readMessage(org.lumongo.cluster.message.Lumongo.LMMember.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(member_);
member_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentMapping_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.SegmentMapping.class, org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SegmentMapping parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SegmentMapping(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int SEGMENTNUMBER_FIELD_NUMBER = 1;
private int segmentNumber_;
/**
* required uint32 segmentNumber = 1;
*/
public boolean hasSegmentNumber() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 segmentNumber = 1;
*/
public int getSegmentNumber() {
return segmentNumber_;
}
public static final int MEMBER_FIELD_NUMBER = 2;
private org.lumongo.cluster.message.Lumongo.LMMember member_;
/**
* required .LMMember member = 2;
*/
public boolean hasMember() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .LMMember member = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMMember getMember() {
return member_;
}
/**
* required .LMMember member = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder getMemberOrBuilder() {
return member_;
}
private void initFields() {
segmentNumber_ = 0;
member_ = org.lumongo.cluster.message.Lumongo.LMMember.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSegmentNumber()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasMember()) {
memoizedIsInitialized = 0;
return false;
}
if (!getMember().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, segmentNumber_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, member_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, segmentNumber_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, member_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.SegmentMapping parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.SegmentMapping 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;
}
/**
* Protobuf type {@code SegmentMapping}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:SegmentMapping)
org.lumongo.cluster.message.Lumongo.SegmentMappingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentMapping_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.SegmentMapping.class, org.lumongo.cluster.message.Lumongo.SegmentMapping.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.SegmentMapping.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMemberFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
segmentNumber_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (memberBuilder_ == null) {
member_ = org.lumongo.cluster.message.Lumongo.LMMember.getDefaultInstance();
} else {
memberBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentMapping_descriptor;
}
public org.lumongo.cluster.message.Lumongo.SegmentMapping getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.SegmentMapping.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.SegmentMapping build() {
org.lumongo.cluster.message.Lumongo.SegmentMapping result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.SegmentMapping buildPartial() {
org.lumongo.cluster.message.Lumongo.SegmentMapping result = new org.lumongo.cluster.message.Lumongo.SegmentMapping(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.segmentNumber_ = segmentNumber_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (memberBuilder_ == null) {
result.member_ = member_;
} else {
result.member_ = memberBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.SegmentMapping) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.SegmentMapping)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.SegmentMapping other) {
if (other == org.lumongo.cluster.message.Lumongo.SegmentMapping.getDefaultInstance()) return this;
if (other.hasSegmentNumber()) {
setSegmentNumber(other.getSegmentNumber());
}
if (other.hasMember()) {
mergeMember(other.getMember());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSegmentNumber()) {
return false;
}
if (!hasMember()) {
return false;
}
if (!getMember().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.SegmentMapping parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.SegmentMapping) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int segmentNumber_ ;
/**
* required uint32 segmentNumber = 1;
*/
public boolean hasSegmentNumber() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 segmentNumber = 1;
*/
public int getSegmentNumber() {
return segmentNumber_;
}
/**
* required uint32 segmentNumber = 1;
*/
public Builder setSegmentNumber(int value) {
bitField0_ |= 0x00000001;
segmentNumber_ = value;
onChanged();
return this;
}
/**
* required uint32 segmentNumber = 1;
*/
public Builder clearSegmentNumber() {
bitField0_ = (bitField0_ & ~0x00000001);
segmentNumber_ = 0;
onChanged();
return this;
}
private org.lumongo.cluster.message.Lumongo.LMMember member_ = org.lumongo.cluster.message.Lumongo.LMMember.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMMember, org.lumongo.cluster.message.Lumongo.LMMember.Builder, org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder> memberBuilder_;
/**
* required .LMMember member = 2;
*/
public boolean hasMember() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .LMMember member = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMMember getMember() {
if (memberBuilder_ == null) {
return member_;
} else {
return memberBuilder_.getMessage();
}
}
/**
* required .LMMember member = 2;
*/
public Builder setMember(org.lumongo.cluster.message.Lumongo.LMMember value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
member_ = value;
onChanged();
} else {
memberBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .LMMember member = 2;
*/
public Builder setMember(
org.lumongo.cluster.message.Lumongo.LMMember.Builder builderForValue) {
if (memberBuilder_ == null) {
member_ = builderForValue.build();
onChanged();
} else {
memberBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .LMMember member = 2;
*/
public Builder mergeMember(org.lumongo.cluster.message.Lumongo.LMMember value) {
if (memberBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
member_ != org.lumongo.cluster.message.Lumongo.LMMember.getDefaultInstance()) {
member_ =
org.lumongo.cluster.message.Lumongo.LMMember.newBuilder(member_).mergeFrom(value).buildPartial();
} else {
member_ = value;
}
onChanged();
} else {
memberBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .LMMember member = 2;
*/
public Builder clearMember() {
if (memberBuilder_ == null) {
member_ = org.lumongo.cluster.message.Lumongo.LMMember.getDefaultInstance();
onChanged();
} else {
memberBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .LMMember member = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMMember.Builder getMemberBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMemberFieldBuilder().getBuilder();
}
/**
* required .LMMember member = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder getMemberOrBuilder() {
if (memberBuilder_ != null) {
return memberBuilder_.getMessageOrBuilder();
} else {
return member_;
}
}
/**
* required .LMMember member = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMMember, org.lumongo.cluster.message.Lumongo.LMMember.Builder, org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder>
getMemberFieldBuilder() {
if (memberBuilder_ == null) {
memberBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMMember, org.lumongo.cluster.message.Lumongo.LMMember.Builder, org.lumongo.cluster.message.Lumongo.LMMemberOrBuilder>(
getMember(),
getParentForChildren(),
isClean());
member_ = null;
}
return memberBuilder_;
}
// @@protoc_insertion_point(builder_scope:SegmentMapping)
}
static {
defaultInstance = new SegmentMapping(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:SegmentMapping)
}
public interface GetTermsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetTermsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexName = 1;
*/
boolean hasIndexName();
/**
* required string indexName = 1;
*/
java.lang.String getIndexName();
/**
* required string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
/**
* required string fieldName = 2;
*/
boolean hasFieldName();
/**
* required string fieldName = 2;
*/
java.lang.String getFieldName();
/**
* required string fieldName = 2;
*/
com.google.protobuf.ByteString
getFieldNameBytes();
/**
* required uint32 amount = 3;
*/
boolean hasAmount();
/**
* required uint32 amount = 3;
*/
int getAmount();
/**
* optional string startingTerm = 4;
*/
boolean hasStartingTerm();
/**
* optional string startingTerm = 4;
*/
java.lang.String getStartingTerm();
/**
* optional string startingTerm = 4;
*/
com.google.protobuf.ByteString
getStartingTermBytes();
/**
* optional uint32 minDocFreq = 5 [default = 1];
*/
boolean hasMinDocFreq();
/**
* optional uint32 minDocFreq = 5 [default = 1];
*/
int getMinDocFreq();
/**
* optional bool realTime = 6 [default = true];
*/
boolean hasRealTime();
/**
* optional bool realTime = 6 [default = true];
*/
boolean getRealTime();
/**
* optional string termFilter = 7;
*/
boolean hasTermFilter();
/**
* optional string termFilter = 7;
*/
java.lang.String getTermFilter();
/**
* optional string termFilter = 7;
*/
com.google.protobuf.ByteString
getTermFilterBytes();
/**
* optional string termMatch = 8;
*/
boolean hasTermMatch();
/**
* optional string termMatch = 8;
*/
java.lang.String getTermMatch();
/**
* optional string termMatch = 8;
*/
com.google.protobuf.ByteString
getTermMatchBytes();
}
/**
* Protobuf type {@code GetTermsRequest}
*/
public static final class GetTermsRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetTermsRequest)
GetTermsRequestOrBuilder {
// Use GetTermsRequest.newBuilder() to construct.
private GetTermsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetTermsRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetTermsRequest defaultInstance;
public static GetTermsRequest getDefaultInstance() {
return defaultInstance;
}
public GetTermsRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetTermsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexName_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
fieldName_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
amount_ = input.readUInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
startingTerm_ = bs;
break;
}
case 40: {
bitField0_ |= 0x00000010;
minDocFreq_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
realTime_ = input.readBool();
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
termFilter_ = bs;
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
termMatch_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetTermsRequest.class, org.lumongo.cluster.message.Lumongo.GetTermsRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetTermsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetTermsRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXNAME_FIELD_NUMBER = 1;
private java.lang.Object indexName_;
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELDNAME_FIELD_NUMBER = 2;
private java.lang.Object fieldName_;
/**
* required string fieldName = 2;
*/
public boolean hasFieldName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string fieldName = 2;
*/
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fieldName_ = s;
}
return s;
}
}
/**
* required string fieldName = 2;
*/
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AMOUNT_FIELD_NUMBER = 3;
private int amount_;
/**
* required uint32 amount = 3;
*/
public boolean hasAmount() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint32 amount = 3;
*/
public int getAmount() {
return amount_;
}
public static final int STARTINGTERM_FIELD_NUMBER = 4;
private java.lang.Object startingTerm_;
/**
* optional string startingTerm = 4;
*/
public boolean hasStartingTerm() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string startingTerm = 4;
*/
public java.lang.String getStartingTerm() {
java.lang.Object ref = startingTerm_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
startingTerm_ = s;
}
return s;
}
}
/**
* optional string startingTerm = 4;
*/
public com.google.protobuf.ByteString
getStartingTermBytes() {
java.lang.Object ref = startingTerm_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startingTerm_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MINDOCFREQ_FIELD_NUMBER = 5;
private int minDocFreq_;
/**
* optional uint32 minDocFreq = 5 [default = 1];
*/
public boolean hasMinDocFreq() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 minDocFreq = 5 [default = 1];
*/
public int getMinDocFreq() {
return minDocFreq_;
}
public static final int REALTIME_FIELD_NUMBER = 6;
private boolean realTime_;
/**
* optional bool realTime = 6 [default = true];
*/
public boolean hasRealTime() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bool realTime = 6 [default = true];
*/
public boolean getRealTime() {
return realTime_;
}
public static final int TERMFILTER_FIELD_NUMBER = 7;
private java.lang.Object termFilter_;
/**
* optional string termFilter = 7;
*/
public boolean hasTermFilter() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string termFilter = 7;
*/
public java.lang.String getTermFilter() {
java.lang.Object ref = termFilter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
termFilter_ = s;
}
return s;
}
}
/**
* optional string termFilter = 7;
*/
public com.google.protobuf.ByteString
getTermFilterBytes() {
java.lang.Object ref = termFilter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
termFilter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TERMMATCH_FIELD_NUMBER = 8;
private java.lang.Object termMatch_;
/**
* optional string termMatch = 8;
*/
public boolean hasTermMatch() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string termMatch = 8;
*/
public java.lang.String getTermMatch() {
java.lang.Object ref = termMatch_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
termMatch_ = s;
}
return s;
}
}
/**
* optional string termMatch = 8;
*/
public com.google.protobuf.ByteString
getTermMatchBytes() {
java.lang.Object ref = termMatch_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
termMatch_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
indexName_ = "";
fieldName_ = "";
amount_ = 0;
startingTerm_ = "";
minDocFreq_ = 1;
realTime_ = true;
termFilter_ = "";
termMatch_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasFieldName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasAmount()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getFieldNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, amount_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getStartingTermBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, minDocFreq_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, realTime_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(7, getTermFilterBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBytes(8, getTermMatchBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getFieldNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, amount_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getStartingTermBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, minDocFreq_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, realTime_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getTermFilterBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, getTermMatchBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetTermsRequest 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;
}
/**
* Protobuf type {@code GetTermsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetTermsRequest)
org.lumongo.cluster.message.Lumongo.GetTermsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetTermsRequest.class, org.lumongo.cluster.message.Lumongo.GetTermsRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetTermsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
fieldName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
amount_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
startingTerm_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
minDocFreq_ = 1;
bitField0_ = (bitField0_ & ~0x00000010);
realTime_ = true;
bitField0_ = (bitField0_ & ~0x00000020);
termFilter_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
termMatch_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetTermsRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetTermsRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetTermsRequest build() {
org.lumongo.cluster.message.Lumongo.GetTermsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetTermsRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.GetTermsRequest result = new org.lumongo.cluster.message.Lumongo.GetTermsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexName_ = indexName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.fieldName_ = fieldName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.amount_ = amount_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.startingTerm_ = startingTerm_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.minDocFreq_ = minDocFreq_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.realTime_ = realTime_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.termFilter_ = termFilter_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.termMatch_ = termMatch_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetTermsRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetTermsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetTermsRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.GetTermsRequest.getDefaultInstance()) return this;
if (other.hasIndexName()) {
bitField0_ |= 0x00000001;
indexName_ = other.indexName_;
onChanged();
}
if (other.hasFieldName()) {
bitField0_ |= 0x00000002;
fieldName_ = other.fieldName_;
onChanged();
}
if (other.hasAmount()) {
setAmount(other.getAmount());
}
if (other.hasStartingTerm()) {
bitField0_ |= 0x00000008;
startingTerm_ = other.startingTerm_;
onChanged();
}
if (other.hasMinDocFreq()) {
setMinDocFreq(other.getMinDocFreq());
}
if (other.hasRealTime()) {
setRealTime(other.getRealTime());
}
if (other.hasTermFilter()) {
bitField0_ |= 0x00000040;
termFilter_ = other.termFilter_;
onChanged();
}
if (other.hasTermMatch()) {
bitField0_ |= 0x00000080;
termMatch_ = other.termMatch_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexName()) {
return false;
}
if (!hasFieldName()) {
return false;
}
if (!hasAmount()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.GetTermsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetTermsRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 1;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
private java.lang.Object fieldName_ = "";
/**
* required string fieldName = 2;
*/
public boolean hasFieldName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string fieldName = 2;
*/
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fieldName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string fieldName = 2;
*/
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string fieldName = 2;
*/
public Builder setFieldName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fieldName_ = value;
onChanged();
return this;
}
/**
* required string fieldName = 2;
*/
public Builder clearFieldName() {
bitField0_ = (bitField0_ & ~0x00000002);
fieldName_ = getDefaultInstance().getFieldName();
onChanged();
return this;
}
/**
* required string fieldName = 2;
*/
public Builder setFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fieldName_ = value;
onChanged();
return this;
}
private int amount_ ;
/**
* required uint32 amount = 3;
*/
public boolean hasAmount() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint32 amount = 3;
*/
public int getAmount() {
return amount_;
}
/**
* required uint32 amount = 3;
*/
public Builder setAmount(int value) {
bitField0_ |= 0x00000004;
amount_ = value;
onChanged();
return this;
}
/**
* required uint32 amount = 3;
*/
public Builder clearAmount() {
bitField0_ = (bitField0_ & ~0x00000004);
amount_ = 0;
onChanged();
return this;
}
private java.lang.Object startingTerm_ = "";
/**
* optional string startingTerm = 4;
*/
public boolean hasStartingTerm() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string startingTerm = 4;
*/
public java.lang.String getStartingTerm() {
java.lang.Object ref = startingTerm_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
startingTerm_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string startingTerm = 4;
*/
public com.google.protobuf.ByteString
getStartingTermBytes() {
java.lang.Object ref = startingTerm_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startingTerm_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string startingTerm = 4;
*/
public Builder setStartingTerm(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
startingTerm_ = value;
onChanged();
return this;
}
/**
* optional string startingTerm = 4;
*/
public Builder clearStartingTerm() {
bitField0_ = (bitField0_ & ~0x00000008);
startingTerm_ = getDefaultInstance().getStartingTerm();
onChanged();
return this;
}
/**
* optional string startingTerm = 4;
*/
public Builder setStartingTermBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
startingTerm_ = value;
onChanged();
return this;
}
private int minDocFreq_ = 1;
/**
* optional uint32 minDocFreq = 5 [default = 1];
*/
public boolean hasMinDocFreq() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 minDocFreq = 5 [default = 1];
*/
public int getMinDocFreq() {
return minDocFreq_;
}
/**
* optional uint32 minDocFreq = 5 [default = 1];
*/
public Builder setMinDocFreq(int value) {
bitField0_ |= 0x00000010;
minDocFreq_ = value;
onChanged();
return this;
}
/**
* optional uint32 minDocFreq = 5 [default = 1];
*/
public Builder clearMinDocFreq() {
bitField0_ = (bitField0_ & ~0x00000010);
minDocFreq_ = 1;
onChanged();
return this;
}
private boolean realTime_ = true;
/**
* optional bool realTime = 6 [default = true];
*/
public boolean hasRealTime() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bool realTime = 6 [default = true];
*/
public boolean getRealTime() {
return realTime_;
}
/**
* optional bool realTime = 6 [default = true];
*/
public Builder setRealTime(boolean value) {
bitField0_ |= 0x00000020;
realTime_ = value;
onChanged();
return this;
}
/**
* optional bool realTime = 6 [default = true];
*/
public Builder clearRealTime() {
bitField0_ = (bitField0_ & ~0x00000020);
realTime_ = true;
onChanged();
return this;
}
private java.lang.Object termFilter_ = "";
/**
* optional string termFilter = 7;
*/
public boolean hasTermFilter() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string termFilter = 7;
*/
public java.lang.String getTermFilter() {
java.lang.Object ref = termFilter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
termFilter_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string termFilter = 7;
*/
public com.google.protobuf.ByteString
getTermFilterBytes() {
java.lang.Object ref = termFilter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
termFilter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string termFilter = 7;
*/
public Builder setTermFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
termFilter_ = value;
onChanged();
return this;
}
/**
* optional string termFilter = 7;
*/
public Builder clearTermFilter() {
bitField0_ = (bitField0_ & ~0x00000040);
termFilter_ = getDefaultInstance().getTermFilter();
onChanged();
return this;
}
/**
* optional string termFilter = 7;
*/
public Builder setTermFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
termFilter_ = value;
onChanged();
return this;
}
private java.lang.Object termMatch_ = "";
/**
* optional string termMatch = 8;
*/
public boolean hasTermMatch() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string termMatch = 8;
*/
public java.lang.String getTermMatch() {
java.lang.Object ref = termMatch_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
termMatch_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string termMatch = 8;
*/
public com.google.protobuf.ByteString
getTermMatchBytes() {
java.lang.Object ref = termMatch_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
termMatch_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string termMatch = 8;
*/
public Builder setTermMatch(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
termMatch_ = value;
onChanged();
return this;
}
/**
* optional string termMatch = 8;
*/
public Builder clearTermMatch() {
bitField0_ = (bitField0_ & ~0x00000080);
termMatch_ = getDefaultInstance().getTermMatch();
onChanged();
return this;
}
/**
* optional string termMatch = 8;
*/
public Builder setTermMatchBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
termMatch_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetTermsRequest)
}
static {
defaultInstance = new GetTermsRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetTermsRequest)
}
public interface GetTermsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetTermsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Term term = 1;
*/
java.util.List
getTermList();
/**
* repeated .Term term = 1;
*/
org.lumongo.cluster.message.Lumongo.Term getTerm(int index);
/**
* repeated .Term term = 1;
*/
int getTermCount();
/**
* repeated .Term term = 1;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.TermOrBuilder>
getTermOrBuilderList();
/**
* repeated .Term term = 1;
*/
org.lumongo.cluster.message.Lumongo.TermOrBuilder getTermOrBuilder(
int index);
/**
* optional .Term lastTerm = 2;
*/
boolean hasLastTerm();
/**
* optional .Term lastTerm = 2;
*/
org.lumongo.cluster.message.Lumongo.Term getLastTerm();
/**
* optional .Term lastTerm = 2;
*/
org.lumongo.cluster.message.Lumongo.TermOrBuilder getLastTermOrBuilder();
}
/**
* Protobuf type {@code GetTermsResponse}
*/
public static final class GetTermsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetTermsResponse)
GetTermsResponseOrBuilder {
// Use GetTermsResponse.newBuilder() to construct.
private GetTermsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetTermsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetTermsResponse defaultInstance;
public static GetTermsResponse getDefaultInstance() {
return defaultInstance;
}
public GetTermsResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetTermsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
term_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
term_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.Term.PARSER, extensionRegistry));
break;
}
case 18: {
org.lumongo.cluster.message.Lumongo.Term.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = lastTerm_.toBuilder();
}
lastTerm_ = input.readMessage(org.lumongo.cluster.message.Lumongo.Term.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastTerm_);
lastTerm_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
term_ = java.util.Collections.unmodifiableList(term_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetTermsResponse.class, org.lumongo.cluster.message.Lumongo.GetTermsResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetTermsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetTermsResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int TERM_FIELD_NUMBER = 1;
private java.util.List term_;
/**
* repeated .Term term = 1;
*/
public java.util.List getTermList() {
return term_;
}
/**
* repeated .Term term = 1;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.TermOrBuilder>
getTermOrBuilderList() {
return term_;
}
/**
* repeated .Term term = 1;
*/
public int getTermCount() {
return term_.size();
}
/**
* repeated .Term term = 1;
*/
public org.lumongo.cluster.message.Lumongo.Term getTerm(int index) {
return term_.get(index);
}
/**
* repeated .Term term = 1;
*/
public org.lumongo.cluster.message.Lumongo.TermOrBuilder getTermOrBuilder(
int index) {
return term_.get(index);
}
public static final int LASTTERM_FIELD_NUMBER = 2;
private org.lumongo.cluster.message.Lumongo.Term lastTerm_;
/**
* optional .Term lastTerm = 2;
*/
public boolean hasLastTerm() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .Term lastTerm = 2;
*/
public org.lumongo.cluster.message.Lumongo.Term getLastTerm() {
return lastTerm_;
}
/**
* optional .Term lastTerm = 2;
*/
public org.lumongo.cluster.message.Lumongo.TermOrBuilder getLastTermOrBuilder() {
return lastTerm_;
}
private void initFields() {
term_ = java.util.Collections.emptyList();
lastTerm_ = org.lumongo.cluster.message.Lumongo.Term.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getTermCount(); i++) {
if (!getTerm(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasLastTerm()) {
if (!getLastTerm().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < term_.size(); i++) {
output.writeMessage(1, term_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, lastTerm_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < term_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, term_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, lastTerm_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetTermsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetTermsResponse 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;
}
/**
* Protobuf type {@code GetTermsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetTermsResponse)
org.lumongo.cluster.message.Lumongo.GetTermsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetTermsResponse.class, org.lumongo.cluster.message.Lumongo.GetTermsResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetTermsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTermFieldBuilder();
getLastTermFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (termBuilder_ == null) {
term_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
termBuilder_.clear();
}
if (lastTermBuilder_ == null) {
lastTerm_ = org.lumongo.cluster.message.Lumongo.Term.getDefaultInstance();
} else {
lastTermBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetTermsResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetTermsResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetTermsResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetTermsResponse build() {
org.lumongo.cluster.message.Lumongo.GetTermsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetTermsResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.GetTermsResponse result = new org.lumongo.cluster.message.Lumongo.GetTermsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (termBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
term_ = java.util.Collections.unmodifiableList(term_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.term_ = term_;
} else {
result.term_ = termBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
if (lastTermBuilder_ == null) {
result.lastTerm_ = lastTerm_;
} else {
result.lastTerm_ = lastTermBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetTermsResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetTermsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetTermsResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.GetTermsResponse.getDefaultInstance()) return this;
if (termBuilder_ == null) {
if (!other.term_.isEmpty()) {
if (term_.isEmpty()) {
term_ = other.term_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTermIsMutable();
term_.addAll(other.term_);
}
onChanged();
}
} else {
if (!other.term_.isEmpty()) {
if (termBuilder_.isEmpty()) {
termBuilder_.dispose();
termBuilder_ = null;
term_ = other.term_;
bitField0_ = (bitField0_ & ~0x00000001);
termBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTermFieldBuilder() : null;
} else {
termBuilder_.addAllMessages(other.term_);
}
}
}
if (other.hasLastTerm()) {
mergeLastTerm(other.getLastTerm());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getTermCount(); i++) {
if (!getTerm(i).isInitialized()) {
return false;
}
}
if (hasLastTerm()) {
if (!getLastTerm().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.GetTermsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetTermsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List term_ =
java.util.Collections.emptyList();
private void ensureTermIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
term_ = new java.util.ArrayList(term_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.Term, org.lumongo.cluster.message.Lumongo.Term.Builder, org.lumongo.cluster.message.Lumongo.TermOrBuilder> termBuilder_;
/**
* repeated .Term term = 1;
*/
public java.util.List getTermList() {
if (termBuilder_ == null) {
return java.util.Collections.unmodifiableList(term_);
} else {
return termBuilder_.getMessageList();
}
}
/**
* repeated .Term term = 1;
*/
public int getTermCount() {
if (termBuilder_ == null) {
return term_.size();
} else {
return termBuilder_.getCount();
}
}
/**
* repeated .Term term = 1;
*/
public org.lumongo.cluster.message.Lumongo.Term getTerm(int index) {
if (termBuilder_ == null) {
return term_.get(index);
} else {
return termBuilder_.getMessage(index);
}
}
/**
* repeated .Term term = 1;
*/
public Builder setTerm(
int index, org.lumongo.cluster.message.Lumongo.Term value) {
if (termBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTermIsMutable();
term_.set(index, value);
onChanged();
} else {
termBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Term term = 1;
*/
public Builder setTerm(
int index, org.lumongo.cluster.message.Lumongo.Term.Builder builderForValue) {
if (termBuilder_ == null) {
ensureTermIsMutable();
term_.set(index, builderForValue.build());
onChanged();
} else {
termBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Term term = 1;
*/
public Builder addTerm(org.lumongo.cluster.message.Lumongo.Term value) {
if (termBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTermIsMutable();
term_.add(value);
onChanged();
} else {
termBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Term term = 1;
*/
public Builder addTerm(
int index, org.lumongo.cluster.message.Lumongo.Term value) {
if (termBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTermIsMutable();
term_.add(index, value);
onChanged();
} else {
termBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Term term = 1;
*/
public Builder addTerm(
org.lumongo.cluster.message.Lumongo.Term.Builder builderForValue) {
if (termBuilder_ == null) {
ensureTermIsMutable();
term_.add(builderForValue.build());
onChanged();
} else {
termBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Term term = 1;
*/
public Builder addTerm(
int index, org.lumongo.cluster.message.Lumongo.Term.Builder builderForValue) {
if (termBuilder_ == null) {
ensureTermIsMutable();
term_.add(index, builderForValue.build());
onChanged();
} else {
termBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Term term = 1;
*/
public Builder addAllTerm(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.Term> values) {
if (termBuilder_ == null) {
ensureTermIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, term_);
onChanged();
} else {
termBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Term term = 1;
*/
public Builder clearTerm() {
if (termBuilder_ == null) {
term_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
termBuilder_.clear();
}
return this;
}
/**
* repeated .Term term = 1;
*/
public Builder removeTerm(int index) {
if (termBuilder_ == null) {
ensureTermIsMutable();
term_.remove(index);
onChanged();
} else {
termBuilder_.remove(index);
}
return this;
}
/**
* repeated .Term term = 1;
*/
public org.lumongo.cluster.message.Lumongo.Term.Builder getTermBuilder(
int index) {
return getTermFieldBuilder().getBuilder(index);
}
/**
* repeated .Term term = 1;
*/
public org.lumongo.cluster.message.Lumongo.TermOrBuilder getTermOrBuilder(
int index) {
if (termBuilder_ == null) {
return term_.get(index); } else {
return termBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Term term = 1;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.TermOrBuilder>
getTermOrBuilderList() {
if (termBuilder_ != null) {
return termBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(term_);
}
}
/**
* repeated .Term term = 1;
*/
public org.lumongo.cluster.message.Lumongo.Term.Builder addTermBuilder() {
return getTermFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.Term.getDefaultInstance());
}
/**
* repeated .Term term = 1;
*/
public org.lumongo.cluster.message.Lumongo.Term.Builder addTermBuilder(
int index) {
return getTermFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.Term.getDefaultInstance());
}
/**
* repeated .Term term = 1;
*/
public java.util.List
getTermBuilderList() {
return getTermFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.Term, org.lumongo.cluster.message.Lumongo.Term.Builder, org.lumongo.cluster.message.Lumongo.TermOrBuilder>
getTermFieldBuilder() {
if (termBuilder_ == null) {
termBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.Term, org.lumongo.cluster.message.Lumongo.Term.Builder, org.lumongo.cluster.message.Lumongo.TermOrBuilder>(
term_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
term_ = null;
}
return termBuilder_;
}
private org.lumongo.cluster.message.Lumongo.Term lastTerm_ = org.lumongo.cluster.message.Lumongo.Term.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.Term, org.lumongo.cluster.message.Lumongo.Term.Builder, org.lumongo.cluster.message.Lumongo.TermOrBuilder> lastTermBuilder_;
/**
* optional .Term lastTerm = 2;
*/
public boolean hasLastTerm() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .Term lastTerm = 2;
*/
public org.lumongo.cluster.message.Lumongo.Term getLastTerm() {
if (lastTermBuilder_ == null) {
return lastTerm_;
} else {
return lastTermBuilder_.getMessage();
}
}
/**
* optional .Term lastTerm = 2;
*/
public Builder setLastTerm(org.lumongo.cluster.message.Lumongo.Term value) {
if (lastTermBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastTerm_ = value;
onChanged();
} else {
lastTermBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .Term lastTerm = 2;
*/
public Builder setLastTerm(
org.lumongo.cluster.message.Lumongo.Term.Builder builderForValue) {
if (lastTermBuilder_ == null) {
lastTerm_ = builderForValue.build();
onChanged();
} else {
lastTermBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .Term lastTerm = 2;
*/
public Builder mergeLastTerm(org.lumongo.cluster.message.Lumongo.Term value) {
if (lastTermBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
lastTerm_ != org.lumongo.cluster.message.Lumongo.Term.getDefaultInstance()) {
lastTerm_ =
org.lumongo.cluster.message.Lumongo.Term.newBuilder(lastTerm_).mergeFrom(value).buildPartial();
} else {
lastTerm_ = value;
}
onChanged();
} else {
lastTermBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .Term lastTerm = 2;
*/
public Builder clearLastTerm() {
if (lastTermBuilder_ == null) {
lastTerm_ = org.lumongo.cluster.message.Lumongo.Term.getDefaultInstance();
onChanged();
} else {
lastTermBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .Term lastTerm = 2;
*/
public org.lumongo.cluster.message.Lumongo.Term.Builder getLastTermBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getLastTermFieldBuilder().getBuilder();
}
/**
* optional .Term lastTerm = 2;
*/
public org.lumongo.cluster.message.Lumongo.TermOrBuilder getLastTermOrBuilder() {
if (lastTermBuilder_ != null) {
return lastTermBuilder_.getMessageOrBuilder();
} else {
return lastTerm_;
}
}
/**
* optional .Term lastTerm = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.Term, org.lumongo.cluster.message.Lumongo.Term.Builder, org.lumongo.cluster.message.Lumongo.TermOrBuilder>
getLastTermFieldBuilder() {
if (lastTermBuilder_ == null) {
lastTermBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.Term, org.lumongo.cluster.message.Lumongo.Term.Builder, org.lumongo.cluster.message.Lumongo.TermOrBuilder>(
getLastTerm(),
getParentForChildren(),
isClean());
lastTerm_ = null;
}
return lastTermBuilder_;
}
// @@protoc_insertion_point(builder_scope:GetTermsResponse)
}
static {
defaultInstance = new GetTermsResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetTermsResponse)
}
public interface TermOrBuilder extends
// @@protoc_insertion_point(interface_extends:Term)
com.google.protobuf.MessageOrBuilder {
/**
* required string value = 1;
*/
boolean hasValue();
/**
* required string value = 1;
*/
java.lang.String getValue();
/**
* required string value = 1;
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* optional uint64 docFreq = 2;
*/
boolean hasDocFreq();
/**
* optional uint64 docFreq = 2;
*/
long getDocFreq();
}
/**
* Protobuf type {@code Term}
*/
public static final class Term extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Term)
TermOrBuilder {
// Use Term.newBuilder() to construct.
private Term(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Term(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Term defaultInstance;
public static Term getDefaultInstance() {
return defaultInstance;
}
public Term getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Term(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
value_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
docFreq_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_Term_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_Term_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.Term.class, org.lumongo.cluster.message.Lumongo.Term.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Term parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Term(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
private java.lang.Object value_;
/**
* required string value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string value = 1;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* required string value = 1;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOCFREQ_FIELD_NUMBER = 2;
private long docFreq_;
/**
* optional uint64 docFreq = 2;
*/
public boolean hasDocFreq() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 docFreq = 2;
*/
public long getDocFreq() {
return docFreq_;
}
private void initFields() {
value_ = "";
docFreq_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getValueBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, docFreq_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getValueBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, docFreq_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.Term parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.Term parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.Term parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.Term parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.Term parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.Term parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.Term parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.Term parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.Term parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.Term parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.Term 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;
}
/**
* Protobuf type {@code Term}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:Term)
org.lumongo.cluster.message.Lumongo.TermOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_Term_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_Term_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.Term.class, org.lumongo.cluster.message.Lumongo.Term.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.Term.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
value_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
docFreq_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_Term_descriptor;
}
public org.lumongo.cluster.message.Lumongo.Term getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.Term.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.Term build() {
org.lumongo.cluster.message.Lumongo.Term result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.Term buildPartial() {
org.lumongo.cluster.message.Lumongo.Term result = new org.lumongo.cluster.message.Lumongo.Term(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.docFreq_ = docFreq_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.Term) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.Term)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.Term other) {
if (other == org.lumongo.cluster.message.Lumongo.Term.getDefaultInstance()) return this;
if (other.hasValue()) {
bitField0_ |= 0x00000001;
value_ = other.value_;
onChanged();
}
if (other.hasDocFreq()) {
setDocFreq(other.getDocFreq());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasValue()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.Term parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.Term) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object value_ = "";
/**
* required string value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string value = 1;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string value = 1;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string value = 1;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
/**
* required string value = 1;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* required string value = 1;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
private long docFreq_ ;
/**
* optional uint64 docFreq = 2;
*/
public boolean hasDocFreq() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 docFreq = 2;
*/
public long getDocFreq() {
return docFreq_;
}
/**
* optional uint64 docFreq = 2;
*/
public Builder setDocFreq(long value) {
bitField0_ |= 0x00000002;
docFreq_ = value;
onChanged();
return this;
}
/**
* optional uint64 docFreq = 2;
*/
public Builder clearDocFreq() {
bitField0_ = (bitField0_ & ~0x00000002);
docFreq_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:Term)
}
static {
defaultInstance = new Term(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:Term)
}
public interface GetFieldNamesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetFieldNamesRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexName = 1;
*/
boolean hasIndexName();
/**
* required string indexName = 1;
*/
java.lang.String getIndexName();
/**
* required string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
}
/**
* Protobuf type {@code GetFieldNamesRequest}
*/
public static final class GetFieldNamesRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetFieldNamesRequest)
GetFieldNamesRequestOrBuilder {
// Use GetFieldNamesRequest.newBuilder() to construct.
private GetFieldNamesRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetFieldNamesRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetFieldNamesRequest defaultInstance;
public static GetFieldNamesRequest getDefaultInstance() {
return defaultInstance;
}
public GetFieldNamesRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetFieldNamesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexName_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest.class, org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetFieldNamesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetFieldNamesRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXNAME_FIELD_NUMBER = 1;
private java.lang.Object indexName_;
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
indexName_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexNameBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexNameBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest 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;
}
/**
* Protobuf type {@code GetFieldNamesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetFieldNamesRequest)
org.lumongo.cluster.message.Lumongo.GetFieldNamesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest.class, org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest build() {
org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest result = new org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexName_ = indexName_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest.getDefaultInstance()) return this;
if (other.hasIndexName()) {
bitField0_ |= 0x00000001;
indexName_ = other.indexName_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexName()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetFieldNamesRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 1;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetFieldNamesRequest)
}
static {
defaultInstance = new GetFieldNamesRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetFieldNamesRequest)
}
public interface GetFieldNamesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetFieldNamesResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string fieldName = 1;
*/
com.google.protobuf.ProtocolStringList
getFieldNameList();
/**
* repeated string fieldName = 1;
*/
int getFieldNameCount();
/**
* repeated string fieldName = 1;
*/
java.lang.String getFieldName(int index);
/**
* repeated string fieldName = 1;
*/
com.google.protobuf.ByteString
getFieldNameBytes(int index);
}
/**
* Protobuf type {@code GetFieldNamesResponse}
*/
public static final class GetFieldNamesResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetFieldNamesResponse)
GetFieldNamesResponseOrBuilder {
// Use GetFieldNamesResponse.newBuilder() to construct.
private GetFieldNamesResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetFieldNamesResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetFieldNamesResponse defaultInstance;
public static GetFieldNamesResponse getDefaultInstance() {
return defaultInstance;
}
public GetFieldNamesResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetFieldNamesResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fieldName_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
fieldName_.add(bs);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fieldName_ = fieldName_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse.class, org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetFieldNamesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetFieldNamesResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int FIELDNAME_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList fieldName_;
/**
* repeated string fieldName = 1;
*/
public com.google.protobuf.ProtocolStringList
getFieldNameList() {
return fieldName_;
}
/**
* repeated string fieldName = 1;
*/
public int getFieldNameCount() {
return fieldName_.size();
}
/**
* repeated string fieldName = 1;
*/
public java.lang.String getFieldName(int index) {
return fieldName_.get(index);
}
/**
* repeated string fieldName = 1;
*/
public com.google.protobuf.ByteString
getFieldNameBytes(int index) {
return fieldName_.getByteString(index);
}
private void initFields() {
fieldName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < fieldName_.size(); i++) {
output.writeBytes(1, fieldName_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < fieldName_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(fieldName_.getByteString(i));
}
size += dataSize;
size += 1 * getFieldNameList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse 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;
}
/**
* Protobuf type {@code GetFieldNamesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetFieldNamesResponse)
org.lumongo.cluster.message.Lumongo.GetFieldNamesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse.class, org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
fieldName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetFieldNamesResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse build() {
org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse result = new org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
fieldName_ = fieldName_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fieldName_ = fieldName_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse.getDefaultInstance()) return this;
if (!other.fieldName_.isEmpty()) {
if (fieldName_.isEmpty()) {
fieldName_ = other.fieldName_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFieldNameIsMutable();
fieldName_.addAll(other.fieldName_);
}
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 {
org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList fieldName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFieldNameIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
fieldName_ = new com.google.protobuf.LazyStringArrayList(fieldName_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string fieldName = 1;
*/
public com.google.protobuf.ProtocolStringList
getFieldNameList() {
return fieldName_.getUnmodifiableView();
}
/**
* repeated string fieldName = 1;
*/
public int getFieldNameCount() {
return fieldName_.size();
}
/**
* repeated string fieldName = 1;
*/
public java.lang.String getFieldName(int index) {
return fieldName_.get(index);
}
/**
* repeated string fieldName = 1;
*/
public com.google.protobuf.ByteString
getFieldNameBytes(int index) {
return fieldName_.getByteString(index);
}
/**
* repeated string fieldName = 1;
*/
public Builder setFieldName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldNameIsMutable();
fieldName_.set(index, value);
onChanged();
return this;
}
/**
* repeated string fieldName = 1;
*/
public Builder addFieldName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldNameIsMutable();
fieldName_.add(value);
onChanged();
return this;
}
/**
* repeated string fieldName = 1;
*/
public Builder addAllFieldName(
java.lang.Iterable values) {
ensureFieldNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fieldName_);
onChanged();
return this;
}
/**
* repeated string fieldName = 1;
*/
public Builder clearFieldName() {
fieldName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string fieldName = 1;
*/
public Builder addFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldNameIsMutable();
fieldName_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetFieldNamesResponse)
}
static {
defaultInstance = new GetFieldNamesResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetFieldNamesResponse)
}
public interface ClearRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:ClearRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexName = 1;
*/
boolean hasIndexName();
/**
* required string indexName = 1;
*/
java.lang.String getIndexName();
/**
* required string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
}
/**
* Protobuf type {@code ClearRequest}
*/
public static final class ClearRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ClearRequest)
ClearRequestOrBuilder {
// Use ClearRequest.newBuilder() to construct.
private ClearRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ClearRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ClearRequest defaultInstance;
public static ClearRequest getDefaultInstance() {
return defaultInstance;
}
public ClearRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClearRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexName_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.ClearRequest.class, org.lumongo.cluster.message.Lumongo.ClearRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ClearRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClearRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXNAME_FIELD_NUMBER = 1;
private java.lang.Object indexName_;
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
indexName_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexNameBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexNameBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.ClearRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.ClearRequest 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;
}
/**
* Protobuf type {@code ClearRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ClearRequest)
org.lumongo.cluster.message.Lumongo.ClearRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.ClearRequest.class, org.lumongo.cluster.message.Lumongo.ClearRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.ClearRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.ClearRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.ClearRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.ClearRequest build() {
org.lumongo.cluster.message.Lumongo.ClearRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.ClearRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.ClearRequest result = new org.lumongo.cluster.message.Lumongo.ClearRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexName_ = indexName_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.ClearRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.ClearRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.ClearRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.ClearRequest.getDefaultInstance()) return this;
if (other.hasIndexName()) {
bitField0_ |= 0x00000001;
indexName_ = other.indexName_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexName()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.ClearRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.ClearRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 1;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ClearRequest)
}
static {
defaultInstance = new ClearRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ClearRequest)
}
public interface ClearResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ClearResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code ClearResponse}
*/
public static final class ClearResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ClearResponse)
ClearResponseOrBuilder {
// Use ClearResponse.newBuilder() to construct.
private ClearResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ClearResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ClearResponse defaultInstance;
public static ClearResponse getDefaultInstance() {
return defaultInstance;
}
public ClearResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClearResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.ClearResponse.class, org.lumongo.cluster.message.Lumongo.ClearResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ClearResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClearResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.ClearResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.ClearResponse 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;
}
/**
* Protobuf type {@code ClearResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:ClearResponse)
org.lumongo.cluster.message.Lumongo.ClearResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.ClearResponse.class, org.lumongo.cluster.message.Lumongo.ClearResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.ClearResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_ClearResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.ClearResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.ClearResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.ClearResponse build() {
org.lumongo.cluster.message.Lumongo.ClearResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.ClearResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.ClearResponse result = new org.lumongo.cluster.message.Lumongo.ClearResponse(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.ClearResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.ClearResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.ClearResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.ClearResponse.getDefaultInstance()) return this;
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 {
org.lumongo.cluster.message.Lumongo.ClearResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.ClearResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:ClearResponse)
}
static {
defaultInstance = new ClearResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ClearResponse)
}
public interface OptimizeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:OptimizeRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexName = 1;
*/
boolean hasIndexName();
/**
* required string indexName = 1;
*/
java.lang.String getIndexName();
/**
* required string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
}
/**
* Protobuf type {@code OptimizeRequest}
*/
public static final class OptimizeRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:OptimizeRequest)
OptimizeRequestOrBuilder {
// Use OptimizeRequest.newBuilder() to construct.
private OptimizeRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private OptimizeRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final OptimizeRequest defaultInstance;
public static OptimizeRequest getDefaultInstance() {
return defaultInstance;
}
public OptimizeRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OptimizeRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexName_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.OptimizeRequest.class, org.lumongo.cluster.message.Lumongo.OptimizeRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public OptimizeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OptimizeRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXNAME_FIELD_NUMBER = 1;
private java.lang.Object indexName_;
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
indexName_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexNameBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexNameBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.OptimizeRequest 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;
}
/**
* Protobuf type {@code OptimizeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:OptimizeRequest)
org.lumongo.cluster.message.Lumongo.OptimizeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.OptimizeRequest.class, org.lumongo.cluster.message.Lumongo.OptimizeRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.OptimizeRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.OptimizeRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.OptimizeRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.OptimizeRequest build() {
org.lumongo.cluster.message.Lumongo.OptimizeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.OptimizeRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.OptimizeRequest result = new org.lumongo.cluster.message.Lumongo.OptimizeRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexName_ = indexName_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.OptimizeRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.OptimizeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.OptimizeRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.OptimizeRequest.getDefaultInstance()) return this;
if (other.hasIndexName()) {
bitField0_ |= 0x00000001;
indexName_ = other.indexName_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexName()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.OptimizeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.OptimizeRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 1;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:OptimizeRequest)
}
static {
defaultInstance = new OptimizeRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:OptimizeRequest)
}
public interface OptimizeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:OptimizeResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code OptimizeResponse}
*/
public static final class OptimizeResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:OptimizeResponse)
OptimizeResponseOrBuilder {
// Use OptimizeResponse.newBuilder() to construct.
private OptimizeResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private OptimizeResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final OptimizeResponse defaultInstance;
public static OptimizeResponse getDefaultInstance() {
return defaultInstance;
}
public OptimizeResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OptimizeResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.OptimizeResponse.class, org.lumongo.cluster.message.Lumongo.OptimizeResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public OptimizeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OptimizeResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.OptimizeResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.OptimizeResponse 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;
}
/**
* Protobuf type {@code OptimizeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:OptimizeResponse)
org.lumongo.cluster.message.Lumongo.OptimizeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.OptimizeResponse.class, org.lumongo.cluster.message.Lumongo.OptimizeResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.OptimizeResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_OptimizeResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.OptimizeResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.OptimizeResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.OptimizeResponse build() {
org.lumongo.cluster.message.Lumongo.OptimizeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.OptimizeResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.OptimizeResponse result = new org.lumongo.cluster.message.Lumongo.OptimizeResponse(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.OptimizeResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.OptimizeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.OptimizeResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.OptimizeResponse.getDefaultInstance()) return this;
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 {
org.lumongo.cluster.message.Lumongo.OptimizeResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.OptimizeResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:OptimizeResponse)
}
static {
defaultInstance = new OptimizeResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:OptimizeResponse)
}
public interface GetIndexesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetIndexesRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code GetIndexesRequest}
*/
public static final class GetIndexesRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetIndexesRequest)
GetIndexesRequestOrBuilder {
// Use GetIndexesRequest.newBuilder() to construct.
private GetIndexesRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetIndexesRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetIndexesRequest defaultInstance;
public static GetIndexesRequest getDefaultInstance() {
return defaultInstance;
}
public GetIndexesRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetIndexesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetIndexesRequest.class, org.lumongo.cluster.message.Lumongo.GetIndexesRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetIndexesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetIndexesRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetIndexesRequest 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;
}
/**
* Protobuf type {@code GetIndexesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetIndexesRequest)
org.lumongo.cluster.message.Lumongo.GetIndexesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetIndexesRequest.class, org.lumongo.cluster.message.Lumongo.GetIndexesRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetIndexesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetIndexesRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetIndexesRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetIndexesRequest build() {
org.lumongo.cluster.message.Lumongo.GetIndexesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetIndexesRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.GetIndexesRequest result = new org.lumongo.cluster.message.Lumongo.GetIndexesRequest(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetIndexesRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetIndexesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetIndexesRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.GetIndexesRequest.getDefaultInstance()) return this;
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 {
org.lumongo.cluster.message.Lumongo.GetIndexesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetIndexesRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:GetIndexesRequest)
}
static {
defaultInstance = new GetIndexesRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetIndexesRequest)
}
public interface GetIndexesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetIndexesResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string indexName = 1;
*/
com.google.protobuf.ProtocolStringList
getIndexNameList();
/**
* repeated string indexName = 1;
*/
int getIndexNameCount();
/**
* repeated string indexName = 1;
*/
java.lang.String getIndexName(int index);
/**
* repeated string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes(int index);
}
/**
* Protobuf type {@code GetIndexesResponse}
*/
public static final class GetIndexesResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetIndexesResponse)
GetIndexesResponseOrBuilder {
// Use GetIndexesResponse.newBuilder() to construct.
private GetIndexesResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetIndexesResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetIndexesResponse defaultInstance;
public static GetIndexesResponse getDefaultInstance() {
return defaultInstance;
}
public GetIndexesResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetIndexesResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
indexName_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
indexName_.add(bs);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
indexName_ = indexName_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetIndexesResponse.class, org.lumongo.cluster.message.Lumongo.GetIndexesResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetIndexesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetIndexesResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int INDEXNAME_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList indexName_;
/**
* repeated string indexName = 1;
*/
public com.google.protobuf.ProtocolStringList
getIndexNameList() {
return indexName_;
}
/**
* repeated string indexName = 1;
*/
public int getIndexNameCount() {
return indexName_.size();
}
/**
* repeated string indexName = 1;
*/
public java.lang.String getIndexName(int index) {
return indexName_.get(index);
}
/**
* repeated string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes(int index) {
return indexName_.getByteString(index);
}
private void initFields() {
indexName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < indexName_.size(); i++) {
output.writeBytes(1, indexName_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < indexName_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(indexName_.getByteString(i));
}
size += dataSize;
size += 1 * getIndexNameList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetIndexesResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetIndexesResponse 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;
}
/**
* Protobuf type {@code GetIndexesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetIndexesResponse)
org.lumongo.cluster.message.Lumongo.GetIndexesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetIndexesResponse.class, org.lumongo.cluster.message.Lumongo.GetIndexesResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetIndexesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
indexName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetIndexesResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetIndexesResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetIndexesResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetIndexesResponse build() {
org.lumongo.cluster.message.Lumongo.GetIndexesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetIndexesResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.GetIndexesResponse result = new org.lumongo.cluster.message.Lumongo.GetIndexesResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
indexName_ = indexName_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.indexName_ = indexName_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetIndexesResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetIndexesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetIndexesResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.GetIndexesResponse.getDefaultInstance()) return this;
if (!other.indexName_.isEmpty()) {
if (indexName_.isEmpty()) {
indexName_ = other.indexName_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIndexNameIsMutable();
indexName_.addAll(other.indexName_);
}
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 {
org.lumongo.cluster.message.Lumongo.GetIndexesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetIndexesResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList indexName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIndexNameIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
indexName_ = new com.google.protobuf.LazyStringArrayList(indexName_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string indexName = 1;
*/
public com.google.protobuf.ProtocolStringList
getIndexNameList() {
return indexName_.getUnmodifiableView();
}
/**
* repeated string indexName = 1;
*/
public int getIndexNameCount() {
return indexName_.size();
}
/**
* repeated string indexName = 1;
*/
public java.lang.String getIndexName(int index) {
return indexName_.get(index);
}
/**
* repeated string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes(int index) {
return indexName_.getByteString(index);
}
/**
* repeated string indexName = 1;
*/
public Builder setIndexName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexNameIsMutable();
indexName_.set(index, value);
onChanged();
return this;
}
/**
* repeated string indexName = 1;
*/
public Builder addIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexNameIsMutable();
indexName_.add(value);
onChanged();
return this;
}
/**
* repeated string indexName = 1;
*/
public Builder addAllIndexName(
java.lang.Iterable values) {
ensureIndexNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indexName_);
onChanged();
return this;
}
/**
* repeated string indexName = 1;
*/
public Builder clearIndexName() {
indexName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string indexName = 1;
*/
public Builder addIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexNameIsMutable();
indexName_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetIndexesResponse)
}
static {
defaultInstance = new GetIndexesResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetIndexesResponse)
}
public interface GetNumberOfDocsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetNumberOfDocsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexName = 1;
*/
boolean hasIndexName();
/**
* required string indexName = 1;
*/
java.lang.String getIndexName();
/**
* required string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
/**
* optional bool realTime = 2 [default = true];
*/
boolean hasRealTime();
/**
* optional bool realTime = 2 [default = true];
*/
boolean getRealTime();
}
/**
* Protobuf type {@code GetNumberOfDocsRequest}
*/
public static final class GetNumberOfDocsRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetNumberOfDocsRequest)
GetNumberOfDocsRequestOrBuilder {
// Use GetNumberOfDocsRequest.newBuilder() to construct.
private GetNumberOfDocsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetNumberOfDocsRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetNumberOfDocsRequest defaultInstance;
public static GetNumberOfDocsRequest getDefaultInstance() {
return defaultInstance;
}
public GetNumberOfDocsRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNumberOfDocsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexName_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
realTime_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest.class, org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetNumberOfDocsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetNumberOfDocsRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXNAME_FIELD_NUMBER = 1;
private java.lang.Object indexName_;
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REALTIME_FIELD_NUMBER = 2;
private boolean realTime_;
/**
* optional bool realTime = 2 [default = true];
*/
public boolean hasRealTime() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool realTime = 2 [default = true];
*/
public boolean getRealTime() {
return realTime_;
}
private void initFields() {
indexName_ = "";
realTime_ = true;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, realTime_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, realTime_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest 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;
}
/**
* Protobuf type {@code GetNumberOfDocsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetNumberOfDocsRequest)
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest.class, org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
realTime_ = true;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest build() {
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest result = new org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexName_ = indexName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.realTime_ = realTime_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest.getDefaultInstance()) return this;
if (other.hasIndexName()) {
bitField0_ |= 0x00000001;
indexName_ = other.indexName_;
onChanged();
}
if (other.hasRealTime()) {
setRealTime(other.getRealTime());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexName()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetNumberOfDocsRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 1;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
private boolean realTime_ = true;
/**
* optional bool realTime = 2 [default = true];
*/
public boolean hasRealTime() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool realTime = 2 [default = true];
*/
public boolean getRealTime() {
return realTime_;
}
/**
* optional bool realTime = 2 [default = true];
*/
public Builder setRealTime(boolean value) {
bitField0_ |= 0x00000002;
realTime_ = value;
onChanged();
return this;
}
/**
* optional bool realTime = 2 [default = true];
*/
public Builder clearRealTime() {
bitField0_ = (bitField0_ & ~0x00000002);
realTime_ = true;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GetNumberOfDocsRequest)
}
static {
defaultInstance = new GetNumberOfDocsRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetNumberOfDocsRequest)
}
public interface GetNumberOfDocsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetNumberOfDocsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* required uint64 numberOfDocs = 1;
*/
boolean hasNumberOfDocs();
/**
* required uint64 numberOfDocs = 1;
*/
long getNumberOfDocs();
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
java.util.List
getSegmentCountResponseList();
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
org.lumongo.cluster.message.Lumongo.SegmentCountResponse getSegmentCountResponse(int index);
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
int getSegmentCountResponseCount();
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder>
getSegmentCountResponseOrBuilderList();
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder getSegmentCountResponseOrBuilder(
int index);
}
/**
* Protobuf type {@code GetNumberOfDocsResponse}
*/
public static final class GetNumberOfDocsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetNumberOfDocsResponse)
GetNumberOfDocsResponseOrBuilder {
// Use GetNumberOfDocsResponse.newBuilder() to construct.
private GetNumberOfDocsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetNumberOfDocsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetNumberOfDocsResponse defaultInstance;
public static GetNumberOfDocsResponse getDefaultInstance() {
return defaultInstance;
}
public GetNumberOfDocsResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNumberOfDocsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
numberOfDocs_ = input.readUInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
segmentCountResponse_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
segmentCountResponse_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.SegmentCountResponse.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
segmentCountResponse_ = java.util.Collections.unmodifiableList(segmentCountResponse_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse.class, org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetNumberOfDocsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetNumberOfDocsResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int NUMBEROFDOCS_FIELD_NUMBER = 1;
private long numberOfDocs_;
/**
* required uint64 numberOfDocs = 1;
*/
public boolean hasNumberOfDocs() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint64 numberOfDocs = 1;
*/
public long getNumberOfDocs() {
return numberOfDocs_;
}
public static final int SEGMENTCOUNTRESPONSE_FIELD_NUMBER = 2;
private java.util.List segmentCountResponse_;
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public java.util.List getSegmentCountResponseList() {
return segmentCountResponse_;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder>
getSegmentCountResponseOrBuilderList() {
return segmentCountResponse_;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public int getSegmentCountResponseCount() {
return segmentCountResponse_.size();
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public org.lumongo.cluster.message.Lumongo.SegmentCountResponse getSegmentCountResponse(int index) {
return segmentCountResponse_.get(index);
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder getSegmentCountResponseOrBuilder(
int index) {
return segmentCountResponse_.get(index);
}
private void initFields() {
numberOfDocs_ = 0L;
segmentCountResponse_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasNumberOfDocs()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getSegmentCountResponseCount(); i++) {
if (!getSegmentCountResponse(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt64(1, numberOfDocs_);
}
for (int i = 0; i < segmentCountResponse_.size(); i++) {
output.writeMessage(2, segmentCountResponse_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, numberOfDocs_);
}
for (int i = 0; i < segmentCountResponse_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, segmentCountResponse_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse 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;
}
/**
* Protobuf type {@code GetNumberOfDocsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GetNumberOfDocsResponse)
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse.class, org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getSegmentCountResponseFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
numberOfDocs_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
if (segmentCountResponseBuilder_ == null) {
segmentCountResponse_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
segmentCountResponseBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_GetNumberOfDocsResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse build() {
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse result = new org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.numberOfDocs_ = numberOfDocs_;
if (segmentCountResponseBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
segmentCountResponse_ = java.util.Collections.unmodifiableList(segmentCountResponse_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.segmentCountResponse_ = segmentCountResponse_;
} else {
result.segmentCountResponse_ = segmentCountResponseBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse.getDefaultInstance()) return this;
if (other.hasNumberOfDocs()) {
setNumberOfDocs(other.getNumberOfDocs());
}
if (segmentCountResponseBuilder_ == null) {
if (!other.segmentCountResponse_.isEmpty()) {
if (segmentCountResponse_.isEmpty()) {
segmentCountResponse_ = other.segmentCountResponse_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSegmentCountResponseIsMutable();
segmentCountResponse_.addAll(other.segmentCountResponse_);
}
onChanged();
}
} else {
if (!other.segmentCountResponse_.isEmpty()) {
if (segmentCountResponseBuilder_.isEmpty()) {
segmentCountResponseBuilder_.dispose();
segmentCountResponseBuilder_ = null;
segmentCountResponse_ = other.segmentCountResponse_;
bitField0_ = (bitField0_ & ~0x00000002);
segmentCountResponseBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getSegmentCountResponseFieldBuilder() : null;
} else {
segmentCountResponseBuilder_.addAllMessages(other.segmentCountResponse_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasNumberOfDocs()) {
return false;
}
for (int i = 0; i < getSegmentCountResponseCount(); i++) {
if (!getSegmentCountResponse(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long numberOfDocs_ ;
/**
* required uint64 numberOfDocs = 1;
*/
public boolean hasNumberOfDocs() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint64 numberOfDocs = 1;
*/
public long getNumberOfDocs() {
return numberOfDocs_;
}
/**
* required uint64 numberOfDocs = 1;
*/
public Builder setNumberOfDocs(long value) {
bitField0_ |= 0x00000001;
numberOfDocs_ = value;
onChanged();
return this;
}
/**
* required uint64 numberOfDocs = 1;
*/
public Builder clearNumberOfDocs() {
bitField0_ = (bitField0_ & ~0x00000001);
numberOfDocs_ = 0L;
onChanged();
return this;
}
private java.util.List segmentCountResponse_ =
java.util.Collections.emptyList();
private void ensureSegmentCountResponseIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
segmentCountResponse_ = new java.util.ArrayList(segmentCountResponse_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.SegmentCountResponse, org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder, org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder> segmentCountResponseBuilder_;
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public java.util.List getSegmentCountResponseList() {
if (segmentCountResponseBuilder_ == null) {
return java.util.Collections.unmodifiableList(segmentCountResponse_);
} else {
return segmentCountResponseBuilder_.getMessageList();
}
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public int getSegmentCountResponseCount() {
if (segmentCountResponseBuilder_ == null) {
return segmentCountResponse_.size();
} else {
return segmentCountResponseBuilder_.getCount();
}
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public org.lumongo.cluster.message.Lumongo.SegmentCountResponse getSegmentCountResponse(int index) {
if (segmentCountResponseBuilder_ == null) {
return segmentCountResponse_.get(index);
} else {
return segmentCountResponseBuilder_.getMessage(index);
}
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public Builder setSegmentCountResponse(
int index, org.lumongo.cluster.message.Lumongo.SegmentCountResponse value) {
if (segmentCountResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentCountResponseIsMutable();
segmentCountResponse_.set(index, value);
onChanged();
} else {
segmentCountResponseBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public Builder setSegmentCountResponse(
int index, org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder builderForValue) {
if (segmentCountResponseBuilder_ == null) {
ensureSegmentCountResponseIsMutable();
segmentCountResponse_.set(index, builderForValue.build());
onChanged();
} else {
segmentCountResponseBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public Builder addSegmentCountResponse(org.lumongo.cluster.message.Lumongo.SegmentCountResponse value) {
if (segmentCountResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentCountResponseIsMutable();
segmentCountResponse_.add(value);
onChanged();
} else {
segmentCountResponseBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public Builder addSegmentCountResponse(
int index, org.lumongo.cluster.message.Lumongo.SegmentCountResponse value) {
if (segmentCountResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentCountResponseIsMutable();
segmentCountResponse_.add(index, value);
onChanged();
} else {
segmentCountResponseBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public Builder addSegmentCountResponse(
org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder builderForValue) {
if (segmentCountResponseBuilder_ == null) {
ensureSegmentCountResponseIsMutable();
segmentCountResponse_.add(builderForValue.build());
onChanged();
} else {
segmentCountResponseBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public Builder addSegmentCountResponse(
int index, org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder builderForValue) {
if (segmentCountResponseBuilder_ == null) {
ensureSegmentCountResponseIsMutable();
segmentCountResponse_.add(index, builderForValue.build());
onChanged();
} else {
segmentCountResponseBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public Builder addAllSegmentCountResponse(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.SegmentCountResponse> values) {
if (segmentCountResponseBuilder_ == null) {
ensureSegmentCountResponseIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, segmentCountResponse_);
onChanged();
} else {
segmentCountResponseBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public Builder clearSegmentCountResponse() {
if (segmentCountResponseBuilder_ == null) {
segmentCountResponse_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
segmentCountResponseBuilder_.clear();
}
return this;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public Builder removeSegmentCountResponse(int index) {
if (segmentCountResponseBuilder_ == null) {
ensureSegmentCountResponseIsMutable();
segmentCountResponse_.remove(index);
onChanged();
} else {
segmentCountResponseBuilder_.remove(index);
}
return this;
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder getSegmentCountResponseBuilder(
int index) {
return getSegmentCountResponseFieldBuilder().getBuilder(index);
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder getSegmentCountResponseOrBuilder(
int index) {
if (segmentCountResponseBuilder_ == null) {
return segmentCountResponse_.get(index); } else {
return segmentCountResponseBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder>
getSegmentCountResponseOrBuilderList() {
if (segmentCountResponseBuilder_ != null) {
return segmentCountResponseBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(segmentCountResponse_);
}
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder addSegmentCountResponseBuilder() {
return getSegmentCountResponseFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.SegmentCountResponse.getDefaultInstance());
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder addSegmentCountResponseBuilder(
int index) {
return getSegmentCountResponseFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.SegmentCountResponse.getDefaultInstance());
}
/**
* repeated .SegmentCountResponse segmentCountResponse = 2;
*/
public java.util.List
getSegmentCountResponseBuilderList() {
return getSegmentCountResponseFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.SegmentCountResponse, org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder, org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder>
getSegmentCountResponseFieldBuilder() {
if (segmentCountResponseBuilder_ == null) {
segmentCountResponseBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.SegmentCountResponse, org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder, org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder>(
segmentCountResponse_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
segmentCountResponse_ = null;
}
return segmentCountResponseBuilder_;
}
// @@protoc_insertion_point(builder_scope:GetNumberOfDocsResponse)
}
static {
defaultInstance = new GetNumberOfDocsResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GetNumberOfDocsResponse)
}
public interface SegmentCountResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:SegmentCountResponse)
com.google.protobuf.MessageOrBuilder {
/**
* required uint32 segmentNumber = 1;
*/
boolean hasSegmentNumber();
/**
* required uint32 segmentNumber = 1;
*/
int getSegmentNumber();
/**
* required uint32 numberOfDocs = 2;
*/
boolean hasNumberOfDocs();
/**
* required uint32 numberOfDocs = 2;
*/
int getNumberOfDocs();
}
/**
* Protobuf type {@code SegmentCountResponse}
*/
public static final class SegmentCountResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:SegmentCountResponse)
SegmentCountResponseOrBuilder {
// Use SegmentCountResponse.newBuilder() to construct.
private SegmentCountResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SegmentCountResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SegmentCountResponse defaultInstance;
public static SegmentCountResponse getDefaultInstance() {
return defaultInstance;
}
public SegmentCountResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SegmentCountResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
segmentNumber_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
numberOfDocs_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentCountResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentCountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.SegmentCountResponse.class, org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SegmentCountResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SegmentCountResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int SEGMENTNUMBER_FIELD_NUMBER = 1;
private int segmentNumber_;
/**
* required uint32 segmentNumber = 1;
*/
public boolean hasSegmentNumber() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 segmentNumber = 1;
*/
public int getSegmentNumber() {
return segmentNumber_;
}
public static final int NUMBEROFDOCS_FIELD_NUMBER = 2;
private int numberOfDocs_;
/**
* required uint32 numberOfDocs = 2;
*/
public boolean hasNumberOfDocs() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 numberOfDocs = 2;
*/
public int getNumberOfDocs() {
return numberOfDocs_;
}
private void initFields() {
segmentNumber_ = 0;
numberOfDocs_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSegmentNumber()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasNumberOfDocs()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, segmentNumber_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, numberOfDocs_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, segmentNumber_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, numberOfDocs_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.SegmentCountResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.SegmentCountResponse 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;
}
/**
* Protobuf type {@code SegmentCountResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:SegmentCountResponse)
org.lumongo.cluster.message.Lumongo.SegmentCountResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentCountResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentCountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.SegmentCountResponse.class, org.lumongo.cluster.message.Lumongo.SegmentCountResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.SegmentCountResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
segmentNumber_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
numberOfDocs_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_SegmentCountResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.SegmentCountResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.SegmentCountResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.SegmentCountResponse build() {
org.lumongo.cluster.message.Lumongo.SegmentCountResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.SegmentCountResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.SegmentCountResponse result = new org.lumongo.cluster.message.Lumongo.SegmentCountResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.segmentNumber_ = segmentNumber_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.numberOfDocs_ = numberOfDocs_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.SegmentCountResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.SegmentCountResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.SegmentCountResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.SegmentCountResponse.getDefaultInstance()) return this;
if (other.hasSegmentNumber()) {
setSegmentNumber(other.getSegmentNumber());
}
if (other.hasNumberOfDocs()) {
setNumberOfDocs(other.getNumberOfDocs());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSegmentNumber()) {
return false;
}
if (!hasNumberOfDocs()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.SegmentCountResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.SegmentCountResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int segmentNumber_ ;
/**
* required uint32 segmentNumber = 1;
*/
public boolean hasSegmentNumber() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 segmentNumber = 1;
*/
public int getSegmentNumber() {
return segmentNumber_;
}
/**
* required uint32 segmentNumber = 1;
*/
public Builder setSegmentNumber(int value) {
bitField0_ |= 0x00000001;
segmentNumber_ = value;
onChanged();
return this;
}
/**
* required uint32 segmentNumber = 1;
*/
public Builder clearSegmentNumber() {
bitField0_ = (bitField0_ & ~0x00000001);
segmentNumber_ = 0;
onChanged();
return this;
}
private int numberOfDocs_ ;
/**
* required uint32 numberOfDocs = 2;
*/
public boolean hasNumberOfDocs() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 numberOfDocs = 2;
*/
public int getNumberOfDocs() {
return numberOfDocs_;
}
/**
* required uint32 numberOfDocs = 2;
*/
public Builder setNumberOfDocs(int value) {
bitField0_ |= 0x00000002;
numberOfDocs_ = value;
onChanged();
return this;
}
/**
* required uint32 numberOfDocs = 2;
*/
public Builder clearNumberOfDocs() {
bitField0_ = (bitField0_ & ~0x00000002);
numberOfDocs_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:SegmentCountResponse)
}
static {
defaultInstance = new SegmentCountResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:SegmentCountResponse)
}
public interface IndexCreateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:IndexCreateRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexName = 1;
*/
boolean hasIndexName();
/**
* required string indexName = 1;
*/
java.lang.String getIndexName();
/**
* required string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
/**
* required string uniqueIdField = 2;
*/
boolean hasUniqueIdField();
/**
* required string uniqueIdField = 2;
*/
java.lang.String getUniqueIdField();
/**
* required string uniqueIdField = 2;
*/
com.google.protobuf.ByteString
getUniqueIdFieldBytes();
/**
* required uint32 numberOfSegments = 3;
*/
boolean hasNumberOfSegments();
/**
* required uint32 numberOfSegments = 3;
*/
int getNumberOfSegments();
/**
* required .IndexSettings indexSettings = 4;
*/
boolean hasIndexSettings();
/**
* required .IndexSettings indexSettings = 4;
*/
org.lumongo.cluster.message.Lumongo.IndexSettings getIndexSettings();
/**
* required .IndexSettings indexSettings = 4;
*/
org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder getIndexSettingsOrBuilder();
}
/**
* Protobuf type {@code IndexCreateRequest}
*/
public static final class IndexCreateRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:IndexCreateRequest)
IndexCreateRequestOrBuilder {
// Use IndexCreateRequest.newBuilder() to construct.
private IndexCreateRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IndexCreateRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IndexCreateRequest defaultInstance;
public static IndexCreateRequest getDefaultInstance() {
return defaultInstance;
}
public IndexCreateRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexCreateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexName_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
uniqueIdField_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
numberOfSegments_ = input.readUInt32();
break;
}
case 34: {
org.lumongo.cluster.message.Lumongo.IndexSettings.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = indexSettings_.toBuilder();
}
indexSettings_ = input.readMessage(org.lumongo.cluster.message.Lumongo.IndexSettings.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(indexSettings_);
indexSettings_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexCreateRequest.class, org.lumongo.cluster.message.Lumongo.IndexCreateRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IndexCreateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexCreateRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXNAME_FIELD_NUMBER = 1;
private java.lang.Object indexName_;
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNIQUEIDFIELD_FIELD_NUMBER = 2;
private java.lang.Object uniqueIdField_;
/**
* required string uniqueIdField = 2;
*/
public boolean hasUniqueIdField() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string uniqueIdField = 2;
*/
public java.lang.String getUniqueIdField() {
java.lang.Object ref = uniqueIdField_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
uniqueIdField_ = s;
}
return s;
}
}
/**
* required string uniqueIdField = 2;
*/
public com.google.protobuf.ByteString
getUniqueIdFieldBytes() {
java.lang.Object ref = uniqueIdField_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uniqueIdField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBEROFSEGMENTS_FIELD_NUMBER = 3;
private int numberOfSegments_;
/**
* required uint32 numberOfSegments = 3;
*/
public boolean hasNumberOfSegments() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint32 numberOfSegments = 3;
*/
public int getNumberOfSegments() {
return numberOfSegments_;
}
public static final int INDEXSETTINGS_FIELD_NUMBER = 4;
private org.lumongo.cluster.message.Lumongo.IndexSettings indexSettings_;
/**
* required .IndexSettings indexSettings = 4;
*/
public boolean hasIndexSettings() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettings getIndexSettings() {
return indexSettings_;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder getIndexSettingsOrBuilder() {
return indexSettings_;
}
private void initFields() {
indexName_ = "";
uniqueIdField_ = "";
numberOfSegments_ = 0;
indexSettings_ = org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasUniqueIdField()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasNumberOfSegments()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasIndexSettings()) {
memoizedIsInitialized = 0;
return false;
}
if (!getIndexSettings().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getUniqueIdFieldBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, numberOfSegments_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, indexSettings_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getUniqueIdFieldBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, numberOfSegments_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, indexSettings_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.IndexCreateRequest 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;
}
/**
* Protobuf type {@code IndexCreateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:IndexCreateRequest)
org.lumongo.cluster.message.Lumongo.IndexCreateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexCreateRequest.class, org.lumongo.cluster.message.Lumongo.IndexCreateRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.IndexCreateRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIndexSettingsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
uniqueIdField_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
numberOfSegments_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (indexSettingsBuilder_ == null) {
indexSettings_ = org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance();
} else {
indexSettingsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.IndexCreateRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.IndexCreateRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.IndexCreateRequest build() {
org.lumongo.cluster.message.Lumongo.IndexCreateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.IndexCreateRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.IndexCreateRequest result = new org.lumongo.cluster.message.Lumongo.IndexCreateRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexName_ = indexName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.uniqueIdField_ = uniqueIdField_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.numberOfSegments_ = numberOfSegments_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (indexSettingsBuilder_ == null) {
result.indexSettings_ = indexSettings_;
} else {
result.indexSettings_ = indexSettingsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.IndexCreateRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.IndexCreateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.IndexCreateRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.IndexCreateRequest.getDefaultInstance()) return this;
if (other.hasIndexName()) {
bitField0_ |= 0x00000001;
indexName_ = other.indexName_;
onChanged();
}
if (other.hasUniqueIdField()) {
bitField0_ |= 0x00000002;
uniqueIdField_ = other.uniqueIdField_;
onChanged();
}
if (other.hasNumberOfSegments()) {
setNumberOfSegments(other.getNumberOfSegments());
}
if (other.hasIndexSettings()) {
mergeIndexSettings(other.getIndexSettings());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexName()) {
return false;
}
if (!hasUniqueIdField()) {
return false;
}
if (!hasNumberOfSegments()) {
return false;
}
if (!hasIndexSettings()) {
return false;
}
if (!getIndexSettings().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.IndexCreateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.IndexCreateRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 1;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
private java.lang.Object uniqueIdField_ = "";
/**
* required string uniqueIdField = 2;
*/
public boolean hasUniqueIdField() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string uniqueIdField = 2;
*/
public java.lang.String getUniqueIdField() {
java.lang.Object ref = uniqueIdField_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
uniqueIdField_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string uniqueIdField = 2;
*/
public com.google.protobuf.ByteString
getUniqueIdFieldBytes() {
java.lang.Object ref = uniqueIdField_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uniqueIdField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string uniqueIdField = 2;
*/
public Builder setUniqueIdField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
uniqueIdField_ = value;
onChanged();
return this;
}
/**
* required string uniqueIdField = 2;
*/
public Builder clearUniqueIdField() {
bitField0_ = (bitField0_ & ~0x00000002);
uniqueIdField_ = getDefaultInstance().getUniqueIdField();
onChanged();
return this;
}
/**
* required string uniqueIdField = 2;
*/
public Builder setUniqueIdFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
uniqueIdField_ = value;
onChanged();
return this;
}
private int numberOfSegments_ ;
/**
* required uint32 numberOfSegments = 3;
*/
public boolean hasNumberOfSegments() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint32 numberOfSegments = 3;
*/
public int getNumberOfSegments() {
return numberOfSegments_;
}
/**
* required uint32 numberOfSegments = 3;
*/
public Builder setNumberOfSegments(int value) {
bitField0_ |= 0x00000004;
numberOfSegments_ = value;
onChanged();
return this;
}
/**
* required uint32 numberOfSegments = 3;
*/
public Builder clearNumberOfSegments() {
bitField0_ = (bitField0_ & ~0x00000004);
numberOfSegments_ = 0;
onChanged();
return this;
}
private org.lumongo.cluster.message.Lumongo.IndexSettings indexSettings_ = org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexSettings, org.lumongo.cluster.message.Lumongo.IndexSettings.Builder, org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder> indexSettingsBuilder_;
/**
* required .IndexSettings indexSettings = 4;
*/
public boolean hasIndexSettings() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettings getIndexSettings() {
if (indexSettingsBuilder_ == null) {
return indexSettings_;
} else {
return indexSettingsBuilder_.getMessage();
}
}
/**
* required .IndexSettings indexSettings = 4;
*/
public Builder setIndexSettings(org.lumongo.cluster.message.Lumongo.IndexSettings value) {
if (indexSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
indexSettings_ = value;
onChanged();
} else {
indexSettingsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public Builder setIndexSettings(
org.lumongo.cluster.message.Lumongo.IndexSettings.Builder builderForValue) {
if (indexSettingsBuilder_ == null) {
indexSettings_ = builderForValue.build();
onChanged();
} else {
indexSettingsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public Builder mergeIndexSettings(org.lumongo.cluster.message.Lumongo.IndexSettings value) {
if (indexSettingsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
indexSettings_ != org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance()) {
indexSettings_ =
org.lumongo.cluster.message.Lumongo.IndexSettings.newBuilder(indexSettings_).mergeFrom(value).buildPartial();
} else {
indexSettings_ = value;
}
onChanged();
} else {
indexSettingsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public Builder clearIndexSettings() {
if (indexSettingsBuilder_ == null) {
indexSettings_ = org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance();
onChanged();
} else {
indexSettingsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettings.Builder getIndexSettingsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getIndexSettingsFieldBuilder().getBuilder();
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder getIndexSettingsOrBuilder() {
if (indexSettingsBuilder_ != null) {
return indexSettingsBuilder_.getMessageOrBuilder();
} else {
return indexSettings_;
}
}
/**
* required .IndexSettings indexSettings = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexSettings, org.lumongo.cluster.message.Lumongo.IndexSettings.Builder, org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder>
getIndexSettingsFieldBuilder() {
if (indexSettingsBuilder_ == null) {
indexSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexSettings, org.lumongo.cluster.message.Lumongo.IndexSettings.Builder, org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder>(
getIndexSettings(),
getParentForChildren(),
isClean());
indexSettings_ = null;
}
return indexSettingsBuilder_;
}
// @@protoc_insertion_point(builder_scope:IndexCreateRequest)
}
static {
defaultInstance = new IndexCreateRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IndexCreateRequest)
}
public interface IndexCreateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:IndexCreateResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code IndexCreateResponse}
*/
public static final class IndexCreateResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:IndexCreateResponse)
IndexCreateResponseOrBuilder {
// Use IndexCreateResponse.newBuilder() to construct.
private IndexCreateResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IndexCreateResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IndexCreateResponse defaultInstance;
public static IndexCreateResponse getDefaultInstance() {
return defaultInstance;
}
public IndexCreateResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexCreateResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexCreateResponse.class, org.lumongo.cluster.message.Lumongo.IndexCreateResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IndexCreateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexCreateResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexCreateResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.IndexCreateResponse 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;
}
/**
* Protobuf type {@code IndexCreateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:IndexCreateResponse)
org.lumongo.cluster.message.Lumongo.IndexCreateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexCreateResponse.class, org.lumongo.cluster.message.Lumongo.IndexCreateResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.IndexCreateResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexCreateResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.IndexCreateResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.IndexCreateResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.IndexCreateResponse build() {
org.lumongo.cluster.message.Lumongo.IndexCreateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.IndexCreateResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.IndexCreateResponse result = new org.lumongo.cluster.message.Lumongo.IndexCreateResponse(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.IndexCreateResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.IndexCreateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.IndexCreateResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.IndexCreateResponse.getDefaultInstance()) return this;
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 {
org.lumongo.cluster.message.Lumongo.IndexCreateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.IndexCreateResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:IndexCreateResponse)
}
static {
defaultInstance = new IndexCreateResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IndexCreateResponse)
}
public interface IndexSettingsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:IndexSettingsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexName = 1;
*/
boolean hasIndexName();
/**
* required string indexName = 1;
*/
java.lang.String getIndexName();
/**
* required string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
/**
* required .IndexSettings indexSettings = 4;
*/
boolean hasIndexSettings();
/**
* required .IndexSettings indexSettings = 4;
*/
org.lumongo.cluster.message.Lumongo.IndexSettings getIndexSettings();
/**
* required .IndexSettings indexSettings = 4;
*/
org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder getIndexSettingsOrBuilder();
}
/**
* Protobuf type {@code IndexSettingsRequest}
*/
public static final class IndexSettingsRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:IndexSettingsRequest)
IndexSettingsRequestOrBuilder {
// Use IndexSettingsRequest.newBuilder() to construct.
private IndexSettingsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IndexSettingsRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IndexSettingsRequest defaultInstance;
public static IndexSettingsRequest getDefaultInstance() {
return defaultInstance;
}
public IndexSettingsRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexSettingsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexName_ = bs;
break;
}
case 34: {
org.lumongo.cluster.message.Lumongo.IndexSettings.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = indexSettings_.toBuilder();
}
indexSettings_ = input.readMessage(org.lumongo.cluster.message.Lumongo.IndexSettings.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(indexSettings_);
indexSettings_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexSettingsRequest.class, org.lumongo.cluster.message.Lumongo.IndexSettingsRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IndexSettingsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexSettingsRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXNAME_FIELD_NUMBER = 1;
private java.lang.Object indexName_;
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEXSETTINGS_FIELD_NUMBER = 4;
private org.lumongo.cluster.message.Lumongo.IndexSettings indexSettings_;
/**
* required .IndexSettings indexSettings = 4;
*/
public boolean hasIndexSettings() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettings getIndexSettings() {
return indexSettings_;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder getIndexSettingsOrBuilder() {
return indexSettings_;
}
private void initFields() {
indexName_ = "";
indexSettings_ = org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasIndexSettings()) {
memoizedIsInitialized = 0;
return false;
}
if (!getIndexSettings().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(4, indexSettings_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, indexSettings_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.IndexSettingsRequest 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;
}
/**
* Protobuf type {@code IndexSettingsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:IndexSettingsRequest)
org.lumongo.cluster.message.Lumongo.IndexSettingsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexSettingsRequest.class, org.lumongo.cluster.message.Lumongo.IndexSettingsRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.IndexSettingsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIndexSettingsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (indexSettingsBuilder_ == null) {
indexSettings_ = org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance();
} else {
indexSettingsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.IndexSettingsRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.IndexSettingsRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.IndexSettingsRequest build() {
org.lumongo.cluster.message.Lumongo.IndexSettingsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.IndexSettingsRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.IndexSettingsRequest result = new org.lumongo.cluster.message.Lumongo.IndexSettingsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexName_ = indexName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (indexSettingsBuilder_ == null) {
result.indexSettings_ = indexSettings_;
} else {
result.indexSettings_ = indexSettingsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.IndexSettingsRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.IndexSettingsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.IndexSettingsRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.IndexSettingsRequest.getDefaultInstance()) return this;
if (other.hasIndexName()) {
bitField0_ |= 0x00000001;
indexName_ = other.indexName_;
onChanged();
}
if (other.hasIndexSettings()) {
mergeIndexSettings(other.getIndexSettings());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexName()) {
return false;
}
if (!hasIndexSettings()) {
return false;
}
if (!getIndexSettings().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.IndexSettingsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.IndexSettingsRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 1;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
private org.lumongo.cluster.message.Lumongo.IndexSettings indexSettings_ = org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexSettings, org.lumongo.cluster.message.Lumongo.IndexSettings.Builder, org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder> indexSettingsBuilder_;
/**
* required .IndexSettings indexSettings = 4;
*/
public boolean hasIndexSettings() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettings getIndexSettings() {
if (indexSettingsBuilder_ == null) {
return indexSettings_;
} else {
return indexSettingsBuilder_.getMessage();
}
}
/**
* required .IndexSettings indexSettings = 4;
*/
public Builder setIndexSettings(org.lumongo.cluster.message.Lumongo.IndexSettings value) {
if (indexSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
indexSettings_ = value;
onChanged();
} else {
indexSettingsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public Builder setIndexSettings(
org.lumongo.cluster.message.Lumongo.IndexSettings.Builder builderForValue) {
if (indexSettingsBuilder_ == null) {
indexSettings_ = builderForValue.build();
onChanged();
} else {
indexSettingsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public Builder mergeIndexSettings(org.lumongo.cluster.message.Lumongo.IndexSettings value) {
if (indexSettingsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
indexSettings_ != org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance()) {
indexSettings_ =
org.lumongo.cluster.message.Lumongo.IndexSettings.newBuilder(indexSettings_).mergeFrom(value).buildPartial();
} else {
indexSettings_ = value;
}
onChanged();
} else {
indexSettingsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public Builder clearIndexSettings() {
if (indexSettingsBuilder_ == null) {
indexSettings_ = org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance();
onChanged();
} else {
indexSettingsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettings.Builder getIndexSettingsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getIndexSettingsFieldBuilder().getBuilder();
}
/**
* required .IndexSettings indexSettings = 4;
*/
public org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder getIndexSettingsOrBuilder() {
if (indexSettingsBuilder_ != null) {
return indexSettingsBuilder_.getMessageOrBuilder();
} else {
return indexSettings_;
}
}
/**
* required .IndexSettings indexSettings = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexSettings, org.lumongo.cluster.message.Lumongo.IndexSettings.Builder, org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder>
getIndexSettingsFieldBuilder() {
if (indexSettingsBuilder_ == null) {
indexSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexSettings, org.lumongo.cluster.message.Lumongo.IndexSettings.Builder, org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder>(
getIndexSettings(),
getParentForChildren(),
isClean());
indexSettings_ = null;
}
return indexSettingsBuilder_;
}
// @@protoc_insertion_point(builder_scope:IndexSettingsRequest)
}
static {
defaultInstance = new IndexSettingsRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IndexSettingsRequest)
}
public interface IndexSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:IndexSettings)
com.google.protobuf.MessageOrBuilder {
/**
* required string defaultSearchField = 1;
*/
boolean hasDefaultSearchField();
/**
* required string defaultSearchField = 1;
*/
java.lang.String getDefaultSearchField();
/**
* required string defaultSearchField = 1;
*/
com.google.protobuf.ByteString
getDefaultSearchFieldBytes();
/**
* repeated .FieldConfig fieldConfig = 2;
*/
java.util.List
getFieldConfigList();
/**
* repeated .FieldConfig fieldConfig = 2;
*/
org.lumongo.cluster.message.Lumongo.FieldConfig getFieldConfig(int index);
/**
* repeated .FieldConfig fieldConfig = 2;
*/
int getFieldConfigCount();
/**
* repeated .FieldConfig fieldConfig = 2;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder>
getFieldConfigOrBuilderList();
/**
* repeated .FieldConfig fieldConfig = 2;
*/
org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder getFieldConfigOrBuilder(
int index);
/**
* optional bool applyUncommittedDeletes = 3 [default = true];
*/
boolean hasApplyUncommittedDeletes();
/**
* optional bool applyUncommittedDeletes = 3 [default = true];
*/
boolean getApplyUncommittedDeletes();
/**
* optional double requestFactor = 4 [default = 2];
*/
boolean hasRequestFactor();
/**
* optional double requestFactor = 4 [default = 2];
*/
double getRequestFactor();
/**
* optional uint32 minSegmentRequest = 5 [default = 2];
*/
boolean hasMinSegmentRequest();
/**
* optional uint32 minSegmentRequest = 5 [default = 2];
*/
int getMinSegmentRequest();
/**
* optional uint32 idleTimeWithoutCommit = 6 [default = 30];
*/
boolean hasIdleTimeWithoutCommit();
/**
* optional uint32 idleTimeWithoutCommit = 6 [default = 30];
*/
int getIdleTimeWithoutCommit();
/**
* optional uint32 segmentCommitInterval = 7 [default = 3200];
*/
boolean hasSegmentCommitInterval();
/**
* optional uint32 segmentCommitInterval = 7 [default = 3200];
*/
int getSegmentCommitInterval();
/**
* optional double segmentTolerance = 9 [default = 0.05];
*/
boolean hasSegmentTolerance();
/**
* optional double segmentTolerance = 9 [default = 0.05];
*/
double getSegmentTolerance();
/**
* optional uint32 segmentQueryCacheSize = 11 [default = 512];
*/
boolean hasSegmentQueryCacheSize();
/**
* optional uint32 segmentQueryCacheSize = 11 [default = 512];
*/
int getSegmentQueryCacheSize();
/**
* optional uint32 segmentQueryCacheMaxAmount = 12 [default = 256];
*/
boolean hasSegmentQueryCacheMaxAmount();
/**
* optional uint32 segmentQueryCacheMaxAmount = 12 [default = 256];
*/
int getSegmentQueryCacheMaxAmount();
/**
* optional bool storeDocumentInIndex = 13 [default = false];
*/
boolean hasStoreDocumentInIndex();
/**
* optional bool storeDocumentInIndex = 13 [default = false];
*/
boolean getStoreDocumentInIndex();
/**
* optional bool storeDocumentInMongo = 14 [default = true];
*/
boolean hasStoreDocumentInMongo();
/**
* optional bool storeDocumentInMongo = 14 [default = true];
*/
boolean getStoreDocumentInMongo();
}
/**
* Protobuf type {@code IndexSettings}
*/
public static final class IndexSettings extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:IndexSettings)
IndexSettingsOrBuilder {
// Use IndexSettings.newBuilder() to construct.
private IndexSettings(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IndexSettings(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IndexSettings defaultInstance;
public static IndexSettings getDefaultInstance() {
return defaultInstance;
}
public IndexSettings getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
defaultSearchField_ = bs;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
fieldConfig_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
fieldConfig_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.FieldConfig.PARSER, extensionRegistry));
break;
}
case 24: {
bitField0_ |= 0x00000002;
applyUncommittedDeletes_ = input.readBool();
break;
}
case 33: {
bitField0_ |= 0x00000004;
requestFactor_ = input.readDouble();
break;
}
case 40: {
bitField0_ |= 0x00000008;
minSegmentRequest_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000010;
idleTimeWithoutCommit_ = input.readUInt32();
break;
}
case 56: {
bitField0_ |= 0x00000020;
segmentCommitInterval_ = input.readUInt32();
break;
}
case 73: {
bitField0_ |= 0x00000040;
segmentTolerance_ = input.readDouble();
break;
}
case 88: {
bitField0_ |= 0x00000080;
segmentQueryCacheSize_ = input.readUInt32();
break;
}
case 96: {
bitField0_ |= 0x00000100;
segmentQueryCacheMaxAmount_ = input.readUInt32();
break;
}
case 104: {
bitField0_ |= 0x00000200;
storeDocumentInIndex_ = input.readBool();
break;
}
case 112: {
bitField0_ |= 0x00000400;
storeDocumentInMongo_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
fieldConfig_ = java.util.Collections.unmodifiableList(fieldConfig_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettings_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexSettings.class, org.lumongo.cluster.message.Lumongo.IndexSettings.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IndexSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexSettings(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int DEFAULTSEARCHFIELD_FIELD_NUMBER = 1;
private java.lang.Object defaultSearchField_;
/**
* required string defaultSearchField = 1;
*/
public boolean hasDefaultSearchField() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string defaultSearchField = 1;
*/
public java.lang.String getDefaultSearchField() {
java.lang.Object ref = defaultSearchField_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
defaultSearchField_ = s;
}
return s;
}
}
/**
* required string defaultSearchField = 1;
*/
public com.google.protobuf.ByteString
getDefaultSearchFieldBytes() {
java.lang.Object ref = defaultSearchField_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultSearchField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELDCONFIG_FIELD_NUMBER = 2;
private java.util.List fieldConfig_;
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public java.util.List getFieldConfigList() {
return fieldConfig_;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder>
getFieldConfigOrBuilderList() {
return fieldConfig_;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public int getFieldConfigCount() {
return fieldConfig_.size();
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public org.lumongo.cluster.message.Lumongo.FieldConfig getFieldConfig(int index) {
return fieldConfig_.get(index);
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder getFieldConfigOrBuilder(
int index) {
return fieldConfig_.get(index);
}
public static final int APPLYUNCOMMITTEDDELETES_FIELD_NUMBER = 3;
private boolean applyUncommittedDeletes_;
/**
* optional bool applyUncommittedDeletes = 3 [default = true];
*/
public boolean hasApplyUncommittedDeletes() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool applyUncommittedDeletes = 3 [default = true];
*/
public boolean getApplyUncommittedDeletes() {
return applyUncommittedDeletes_;
}
public static final int REQUESTFACTOR_FIELD_NUMBER = 4;
private double requestFactor_;
/**
* optional double requestFactor = 4 [default = 2];
*/
public boolean hasRequestFactor() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional double requestFactor = 4 [default = 2];
*/
public double getRequestFactor() {
return requestFactor_;
}
public static final int MINSEGMENTREQUEST_FIELD_NUMBER = 5;
private int minSegmentRequest_;
/**
* optional uint32 minSegmentRequest = 5 [default = 2];
*/
public boolean hasMinSegmentRequest() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 minSegmentRequest = 5 [default = 2];
*/
public int getMinSegmentRequest() {
return minSegmentRequest_;
}
public static final int IDLETIMEWITHOUTCOMMIT_FIELD_NUMBER = 6;
private int idleTimeWithoutCommit_;
/**
* optional uint32 idleTimeWithoutCommit = 6 [default = 30];
*/
public boolean hasIdleTimeWithoutCommit() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 idleTimeWithoutCommit = 6 [default = 30];
*/
public int getIdleTimeWithoutCommit() {
return idleTimeWithoutCommit_;
}
public static final int SEGMENTCOMMITINTERVAL_FIELD_NUMBER = 7;
private int segmentCommitInterval_;
/**
* optional uint32 segmentCommitInterval = 7 [default = 3200];
*/
public boolean hasSegmentCommitInterval() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 segmentCommitInterval = 7 [default = 3200];
*/
public int getSegmentCommitInterval() {
return segmentCommitInterval_;
}
public static final int SEGMENTTOLERANCE_FIELD_NUMBER = 9;
private double segmentTolerance_;
/**
* optional double segmentTolerance = 9 [default = 0.05];
*/
public boolean hasSegmentTolerance() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional double segmentTolerance = 9 [default = 0.05];
*/
public double getSegmentTolerance() {
return segmentTolerance_;
}
public static final int SEGMENTQUERYCACHESIZE_FIELD_NUMBER = 11;
private int segmentQueryCacheSize_;
/**
* optional uint32 segmentQueryCacheSize = 11 [default = 512];
*/
public boolean hasSegmentQueryCacheSize() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional uint32 segmentQueryCacheSize = 11 [default = 512];
*/
public int getSegmentQueryCacheSize() {
return segmentQueryCacheSize_;
}
public static final int SEGMENTQUERYCACHEMAXAMOUNT_FIELD_NUMBER = 12;
private int segmentQueryCacheMaxAmount_;
/**
* optional uint32 segmentQueryCacheMaxAmount = 12 [default = 256];
*/
public boolean hasSegmentQueryCacheMaxAmount() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 segmentQueryCacheMaxAmount = 12 [default = 256];
*/
public int getSegmentQueryCacheMaxAmount() {
return segmentQueryCacheMaxAmount_;
}
public static final int STOREDOCUMENTININDEX_FIELD_NUMBER = 13;
private boolean storeDocumentInIndex_;
/**
* optional bool storeDocumentInIndex = 13 [default = false];
*/
public boolean hasStoreDocumentInIndex() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional bool storeDocumentInIndex = 13 [default = false];
*/
public boolean getStoreDocumentInIndex() {
return storeDocumentInIndex_;
}
public static final int STOREDOCUMENTINMONGO_FIELD_NUMBER = 14;
private boolean storeDocumentInMongo_;
/**
* optional bool storeDocumentInMongo = 14 [default = true];
*/
public boolean hasStoreDocumentInMongo() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional bool storeDocumentInMongo = 14 [default = true];
*/
public boolean getStoreDocumentInMongo() {
return storeDocumentInMongo_;
}
private void initFields() {
defaultSearchField_ = "";
fieldConfig_ = java.util.Collections.emptyList();
applyUncommittedDeletes_ = true;
requestFactor_ = 2D;
minSegmentRequest_ = 2;
idleTimeWithoutCommit_ = 30;
segmentCommitInterval_ = 3200;
segmentTolerance_ = 0.05D;
segmentQueryCacheSize_ = 512;
segmentQueryCacheMaxAmount_ = 256;
storeDocumentInIndex_ = false;
storeDocumentInMongo_ = true;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasDefaultSearchField()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getFieldConfigCount(); i++) {
if (!getFieldConfig(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getDefaultSearchFieldBytes());
}
for (int i = 0; i < fieldConfig_.size(); i++) {
output.writeMessage(2, fieldConfig_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(3, applyUncommittedDeletes_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeDouble(4, requestFactor_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(5, minSegmentRequest_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(6, idleTimeWithoutCommit_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt32(7, segmentCommitInterval_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeDouble(9, segmentTolerance_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeUInt32(11, segmentQueryCacheSize_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeUInt32(12, segmentQueryCacheMaxAmount_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBool(13, storeDocumentInIndex_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBool(14, storeDocumentInMongo_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getDefaultSearchFieldBytes());
}
for (int i = 0; i < fieldConfig_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, fieldConfig_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, applyUncommittedDeletes_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, requestFactor_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, minSegmentRequest_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, idleTimeWithoutCommit_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, segmentCommitInterval_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, segmentTolerance_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, segmentQueryCacheSize_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, segmentQueryCacheMaxAmount_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, storeDocumentInIndex_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(14, storeDocumentInMongo_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.IndexSettings 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;
}
/**
* Protobuf type {@code IndexSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:IndexSettings)
org.lumongo.cluster.message.Lumongo.IndexSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettings_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexSettings.class, org.lumongo.cluster.message.Lumongo.IndexSettings.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.IndexSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getFieldConfigFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
defaultSearchField_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (fieldConfigBuilder_ == null) {
fieldConfig_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
fieldConfigBuilder_.clear();
}
applyUncommittedDeletes_ = true;
bitField0_ = (bitField0_ & ~0x00000004);
requestFactor_ = 2D;
bitField0_ = (bitField0_ & ~0x00000008);
minSegmentRequest_ = 2;
bitField0_ = (bitField0_ & ~0x00000010);
idleTimeWithoutCommit_ = 30;
bitField0_ = (bitField0_ & ~0x00000020);
segmentCommitInterval_ = 3200;
bitField0_ = (bitField0_ & ~0x00000040);
segmentTolerance_ = 0.05D;
bitField0_ = (bitField0_ & ~0x00000080);
segmentQueryCacheSize_ = 512;
bitField0_ = (bitField0_ & ~0x00000100);
segmentQueryCacheMaxAmount_ = 256;
bitField0_ = (bitField0_ & ~0x00000200);
storeDocumentInIndex_ = false;
bitField0_ = (bitField0_ & ~0x00000400);
storeDocumentInMongo_ = true;
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettings_descriptor;
}
public org.lumongo.cluster.message.Lumongo.IndexSettings getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.IndexSettings build() {
org.lumongo.cluster.message.Lumongo.IndexSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.IndexSettings buildPartial() {
org.lumongo.cluster.message.Lumongo.IndexSettings result = new org.lumongo.cluster.message.Lumongo.IndexSettings(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.defaultSearchField_ = defaultSearchField_;
if (fieldConfigBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
fieldConfig_ = java.util.Collections.unmodifiableList(fieldConfig_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.fieldConfig_ = fieldConfig_;
} else {
result.fieldConfig_ = fieldConfigBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.applyUncommittedDeletes_ = applyUncommittedDeletes_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.requestFactor_ = requestFactor_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
result.minSegmentRequest_ = minSegmentRequest_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000010;
}
result.idleTimeWithoutCommit_ = idleTimeWithoutCommit_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000020;
}
result.segmentCommitInterval_ = segmentCommitInterval_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000040;
}
result.segmentTolerance_ = segmentTolerance_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000080;
}
result.segmentQueryCacheSize_ = segmentQueryCacheSize_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000100;
}
result.segmentQueryCacheMaxAmount_ = segmentQueryCacheMaxAmount_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000200;
}
result.storeDocumentInIndex_ = storeDocumentInIndex_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000400;
}
result.storeDocumentInMongo_ = storeDocumentInMongo_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.IndexSettings) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.IndexSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.IndexSettings other) {
if (other == org.lumongo.cluster.message.Lumongo.IndexSettings.getDefaultInstance()) return this;
if (other.hasDefaultSearchField()) {
bitField0_ |= 0x00000001;
defaultSearchField_ = other.defaultSearchField_;
onChanged();
}
if (fieldConfigBuilder_ == null) {
if (!other.fieldConfig_.isEmpty()) {
if (fieldConfig_.isEmpty()) {
fieldConfig_ = other.fieldConfig_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFieldConfigIsMutable();
fieldConfig_.addAll(other.fieldConfig_);
}
onChanged();
}
} else {
if (!other.fieldConfig_.isEmpty()) {
if (fieldConfigBuilder_.isEmpty()) {
fieldConfigBuilder_.dispose();
fieldConfigBuilder_ = null;
fieldConfig_ = other.fieldConfig_;
bitField0_ = (bitField0_ & ~0x00000002);
fieldConfigBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getFieldConfigFieldBuilder() : null;
} else {
fieldConfigBuilder_.addAllMessages(other.fieldConfig_);
}
}
}
if (other.hasApplyUncommittedDeletes()) {
setApplyUncommittedDeletes(other.getApplyUncommittedDeletes());
}
if (other.hasRequestFactor()) {
setRequestFactor(other.getRequestFactor());
}
if (other.hasMinSegmentRequest()) {
setMinSegmentRequest(other.getMinSegmentRequest());
}
if (other.hasIdleTimeWithoutCommit()) {
setIdleTimeWithoutCommit(other.getIdleTimeWithoutCommit());
}
if (other.hasSegmentCommitInterval()) {
setSegmentCommitInterval(other.getSegmentCommitInterval());
}
if (other.hasSegmentTolerance()) {
setSegmentTolerance(other.getSegmentTolerance());
}
if (other.hasSegmentQueryCacheSize()) {
setSegmentQueryCacheSize(other.getSegmentQueryCacheSize());
}
if (other.hasSegmentQueryCacheMaxAmount()) {
setSegmentQueryCacheMaxAmount(other.getSegmentQueryCacheMaxAmount());
}
if (other.hasStoreDocumentInIndex()) {
setStoreDocumentInIndex(other.getStoreDocumentInIndex());
}
if (other.hasStoreDocumentInMongo()) {
setStoreDocumentInMongo(other.getStoreDocumentInMongo());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasDefaultSearchField()) {
return false;
}
for (int i = 0; i < getFieldConfigCount(); i++) {
if (!getFieldConfig(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.IndexSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.IndexSettings) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object defaultSearchField_ = "";
/**
* required string defaultSearchField = 1;
*/
public boolean hasDefaultSearchField() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string defaultSearchField = 1;
*/
public java.lang.String getDefaultSearchField() {
java.lang.Object ref = defaultSearchField_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
defaultSearchField_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string defaultSearchField = 1;
*/
public com.google.protobuf.ByteString
getDefaultSearchFieldBytes() {
java.lang.Object ref = defaultSearchField_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultSearchField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string defaultSearchField = 1;
*/
public Builder setDefaultSearchField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
defaultSearchField_ = value;
onChanged();
return this;
}
/**
* required string defaultSearchField = 1;
*/
public Builder clearDefaultSearchField() {
bitField0_ = (bitField0_ & ~0x00000001);
defaultSearchField_ = getDefaultInstance().getDefaultSearchField();
onChanged();
return this;
}
/**
* required string defaultSearchField = 1;
*/
public Builder setDefaultSearchFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
defaultSearchField_ = value;
onChanged();
return this;
}
private java.util.List fieldConfig_ =
java.util.Collections.emptyList();
private void ensureFieldConfigIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
fieldConfig_ = new java.util.ArrayList(fieldConfig_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.FieldConfig, org.lumongo.cluster.message.Lumongo.FieldConfig.Builder, org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder> fieldConfigBuilder_;
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public java.util.List getFieldConfigList() {
if (fieldConfigBuilder_ == null) {
return java.util.Collections.unmodifiableList(fieldConfig_);
} else {
return fieldConfigBuilder_.getMessageList();
}
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public int getFieldConfigCount() {
if (fieldConfigBuilder_ == null) {
return fieldConfig_.size();
} else {
return fieldConfigBuilder_.getCount();
}
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public org.lumongo.cluster.message.Lumongo.FieldConfig getFieldConfig(int index) {
if (fieldConfigBuilder_ == null) {
return fieldConfig_.get(index);
} else {
return fieldConfigBuilder_.getMessage(index);
}
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public Builder setFieldConfig(
int index, org.lumongo.cluster.message.Lumongo.FieldConfig value) {
if (fieldConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldConfigIsMutable();
fieldConfig_.set(index, value);
onChanged();
} else {
fieldConfigBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public Builder setFieldConfig(
int index, org.lumongo.cluster.message.Lumongo.FieldConfig.Builder builderForValue) {
if (fieldConfigBuilder_ == null) {
ensureFieldConfigIsMutable();
fieldConfig_.set(index, builderForValue.build());
onChanged();
} else {
fieldConfigBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public Builder addFieldConfig(org.lumongo.cluster.message.Lumongo.FieldConfig value) {
if (fieldConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldConfigIsMutable();
fieldConfig_.add(value);
onChanged();
} else {
fieldConfigBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public Builder addFieldConfig(
int index, org.lumongo.cluster.message.Lumongo.FieldConfig value) {
if (fieldConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldConfigIsMutable();
fieldConfig_.add(index, value);
onChanged();
} else {
fieldConfigBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public Builder addFieldConfig(
org.lumongo.cluster.message.Lumongo.FieldConfig.Builder builderForValue) {
if (fieldConfigBuilder_ == null) {
ensureFieldConfigIsMutable();
fieldConfig_.add(builderForValue.build());
onChanged();
} else {
fieldConfigBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public Builder addFieldConfig(
int index, org.lumongo.cluster.message.Lumongo.FieldConfig.Builder builderForValue) {
if (fieldConfigBuilder_ == null) {
ensureFieldConfigIsMutable();
fieldConfig_.add(index, builderForValue.build());
onChanged();
} else {
fieldConfigBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public Builder addAllFieldConfig(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.FieldConfig> values) {
if (fieldConfigBuilder_ == null) {
ensureFieldConfigIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fieldConfig_);
onChanged();
} else {
fieldConfigBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public Builder clearFieldConfig() {
if (fieldConfigBuilder_ == null) {
fieldConfig_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
fieldConfigBuilder_.clear();
}
return this;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public Builder removeFieldConfig(int index) {
if (fieldConfigBuilder_ == null) {
ensureFieldConfigIsMutable();
fieldConfig_.remove(index);
onChanged();
} else {
fieldConfigBuilder_.remove(index);
}
return this;
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public org.lumongo.cluster.message.Lumongo.FieldConfig.Builder getFieldConfigBuilder(
int index) {
return getFieldConfigFieldBuilder().getBuilder(index);
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder getFieldConfigOrBuilder(
int index) {
if (fieldConfigBuilder_ == null) {
return fieldConfig_.get(index); } else {
return fieldConfigBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder>
getFieldConfigOrBuilderList() {
if (fieldConfigBuilder_ != null) {
return fieldConfigBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fieldConfig_);
}
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public org.lumongo.cluster.message.Lumongo.FieldConfig.Builder addFieldConfigBuilder() {
return getFieldConfigFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.FieldConfig.getDefaultInstance());
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public org.lumongo.cluster.message.Lumongo.FieldConfig.Builder addFieldConfigBuilder(
int index) {
return getFieldConfigFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.FieldConfig.getDefaultInstance());
}
/**
* repeated .FieldConfig fieldConfig = 2;
*/
public java.util.List
getFieldConfigBuilderList() {
return getFieldConfigFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.FieldConfig, org.lumongo.cluster.message.Lumongo.FieldConfig.Builder, org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder>
getFieldConfigFieldBuilder() {
if (fieldConfigBuilder_ == null) {
fieldConfigBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.FieldConfig, org.lumongo.cluster.message.Lumongo.FieldConfig.Builder, org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder>(
fieldConfig_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
fieldConfig_ = null;
}
return fieldConfigBuilder_;
}
private boolean applyUncommittedDeletes_ = true;
/**
* optional bool applyUncommittedDeletes = 3 [default = true];
*/
public boolean hasApplyUncommittedDeletes() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool applyUncommittedDeletes = 3 [default = true];
*/
public boolean getApplyUncommittedDeletes() {
return applyUncommittedDeletes_;
}
/**
* optional bool applyUncommittedDeletes = 3 [default = true];
*/
public Builder setApplyUncommittedDeletes(boolean value) {
bitField0_ |= 0x00000004;
applyUncommittedDeletes_ = value;
onChanged();
return this;
}
/**
* optional bool applyUncommittedDeletes = 3 [default = true];
*/
public Builder clearApplyUncommittedDeletes() {
bitField0_ = (bitField0_ & ~0x00000004);
applyUncommittedDeletes_ = true;
onChanged();
return this;
}
private double requestFactor_ = 2D;
/**
* optional double requestFactor = 4 [default = 2];
*/
public boolean hasRequestFactor() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional double requestFactor = 4 [default = 2];
*/
public double getRequestFactor() {
return requestFactor_;
}
/**
* optional double requestFactor = 4 [default = 2];
*/
public Builder setRequestFactor(double value) {
bitField0_ |= 0x00000008;
requestFactor_ = value;
onChanged();
return this;
}
/**
* optional double requestFactor = 4 [default = 2];
*/
public Builder clearRequestFactor() {
bitField0_ = (bitField0_ & ~0x00000008);
requestFactor_ = 2D;
onChanged();
return this;
}
private int minSegmentRequest_ = 2;
/**
* optional uint32 minSegmentRequest = 5 [default = 2];
*/
public boolean hasMinSegmentRequest() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 minSegmentRequest = 5 [default = 2];
*/
public int getMinSegmentRequest() {
return minSegmentRequest_;
}
/**
* optional uint32 minSegmentRequest = 5 [default = 2];
*/
public Builder setMinSegmentRequest(int value) {
bitField0_ |= 0x00000010;
minSegmentRequest_ = value;
onChanged();
return this;
}
/**
* optional uint32 minSegmentRequest = 5 [default = 2];
*/
public Builder clearMinSegmentRequest() {
bitField0_ = (bitField0_ & ~0x00000010);
minSegmentRequest_ = 2;
onChanged();
return this;
}
private int idleTimeWithoutCommit_ = 30;
/**
* optional uint32 idleTimeWithoutCommit = 6 [default = 30];
*/
public boolean hasIdleTimeWithoutCommit() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 idleTimeWithoutCommit = 6 [default = 30];
*/
public int getIdleTimeWithoutCommit() {
return idleTimeWithoutCommit_;
}
/**
* optional uint32 idleTimeWithoutCommit = 6 [default = 30];
*/
public Builder setIdleTimeWithoutCommit(int value) {
bitField0_ |= 0x00000020;
idleTimeWithoutCommit_ = value;
onChanged();
return this;
}
/**
* optional uint32 idleTimeWithoutCommit = 6 [default = 30];
*/
public Builder clearIdleTimeWithoutCommit() {
bitField0_ = (bitField0_ & ~0x00000020);
idleTimeWithoutCommit_ = 30;
onChanged();
return this;
}
private int segmentCommitInterval_ = 3200;
/**
* optional uint32 segmentCommitInterval = 7 [default = 3200];
*/
public boolean hasSegmentCommitInterval() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 segmentCommitInterval = 7 [default = 3200];
*/
public int getSegmentCommitInterval() {
return segmentCommitInterval_;
}
/**
* optional uint32 segmentCommitInterval = 7 [default = 3200];
*/
public Builder setSegmentCommitInterval(int value) {
bitField0_ |= 0x00000040;
segmentCommitInterval_ = value;
onChanged();
return this;
}
/**
* optional uint32 segmentCommitInterval = 7 [default = 3200];
*/
public Builder clearSegmentCommitInterval() {
bitField0_ = (bitField0_ & ~0x00000040);
segmentCommitInterval_ = 3200;
onChanged();
return this;
}
private double segmentTolerance_ = 0.05D;
/**
* optional double segmentTolerance = 9 [default = 0.05];
*/
public boolean hasSegmentTolerance() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional double segmentTolerance = 9 [default = 0.05];
*/
public double getSegmentTolerance() {
return segmentTolerance_;
}
/**
* optional double segmentTolerance = 9 [default = 0.05];
*/
public Builder setSegmentTolerance(double value) {
bitField0_ |= 0x00000080;
segmentTolerance_ = value;
onChanged();
return this;
}
/**
* optional double segmentTolerance = 9 [default = 0.05];
*/
public Builder clearSegmentTolerance() {
bitField0_ = (bitField0_ & ~0x00000080);
segmentTolerance_ = 0.05D;
onChanged();
return this;
}
private int segmentQueryCacheSize_ = 512;
/**
* optional uint32 segmentQueryCacheSize = 11 [default = 512];
*/
public boolean hasSegmentQueryCacheSize() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 segmentQueryCacheSize = 11 [default = 512];
*/
public int getSegmentQueryCacheSize() {
return segmentQueryCacheSize_;
}
/**
* optional uint32 segmentQueryCacheSize = 11 [default = 512];
*/
public Builder setSegmentQueryCacheSize(int value) {
bitField0_ |= 0x00000100;
segmentQueryCacheSize_ = value;
onChanged();
return this;
}
/**
* optional uint32 segmentQueryCacheSize = 11 [default = 512];
*/
public Builder clearSegmentQueryCacheSize() {
bitField0_ = (bitField0_ & ~0x00000100);
segmentQueryCacheSize_ = 512;
onChanged();
return this;
}
private int segmentQueryCacheMaxAmount_ = 256;
/**
* optional uint32 segmentQueryCacheMaxAmount = 12 [default = 256];
*/
public boolean hasSegmentQueryCacheMaxAmount() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional uint32 segmentQueryCacheMaxAmount = 12 [default = 256];
*/
public int getSegmentQueryCacheMaxAmount() {
return segmentQueryCacheMaxAmount_;
}
/**
* optional uint32 segmentQueryCacheMaxAmount = 12 [default = 256];
*/
public Builder setSegmentQueryCacheMaxAmount(int value) {
bitField0_ |= 0x00000200;
segmentQueryCacheMaxAmount_ = value;
onChanged();
return this;
}
/**
* optional uint32 segmentQueryCacheMaxAmount = 12 [default = 256];
*/
public Builder clearSegmentQueryCacheMaxAmount() {
bitField0_ = (bitField0_ & ~0x00000200);
segmentQueryCacheMaxAmount_ = 256;
onChanged();
return this;
}
private boolean storeDocumentInIndex_ ;
/**
* optional bool storeDocumentInIndex = 13 [default = false];
*/
public boolean hasStoreDocumentInIndex() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional bool storeDocumentInIndex = 13 [default = false];
*/
public boolean getStoreDocumentInIndex() {
return storeDocumentInIndex_;
}
/**
* optional bool storeDocumentInIndex = 13 [default = false];
*/
public Builder setStoreDocumentInIndex(boolean value) {
bitField0_ |= 0x00000400;
storeDocumentInIndex_ = value;
onChanged();
return this;
}
/**
* optional bool storeDocumentInIndex = 13 [default = false];
*/
public Builder clearStoreDocumentInIndex() {
bitField0_ = (bitField0_ & ~0x00000400);
storeDocumentInIndex_ = false;
onChanged();
return this;
}
private boolean storeDocumentInMongo_ = true;
/**
* optional bool storeDocumentInMongo = 14 [default = true];
*/
public boolean hasStoreDocumentInMongo() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional bool storeDocumentInMongo = 14 [default = true];
*/
public boolean getStoreDocumentInMongo() {
return storeDocumentInMongo_;
}
/**
* optional bool storeDocumentInMongo = 14 [default = true];
*/
public Builder setStoreDocumentInMongo(boolean value) {
bitField0_ |= 0x00000800;
storeDocumentInMongo_ = value;
onChanged();
return this;
}
/**
* optional bool storeDocumentInMongo = 14 [default = true];
*/
public Builder clearStoreDocumentInMongo() {
bitField0_ = (bitField0_ & ~0x00000800);
storeDocumentInMongo_ = true;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:IndexSettings)
}
static {
defaultInstance = new IndexSettings(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IndexSettings)
}
public interface FieldConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:FieldConfig)
com.google.protobuf.MessageOrBuilder {
/**
* required string storedFieldName = 1;
*/
boolean hasStoredFieldName();
/**
* required string storedFieldName = 1;
*/
java.lang.String getStoredFieldName();
/**
* required string storedFieldName = 1;
*/
com.google.protobuf.ByteString
getStoredFieldNameBytes();
/**
* repeated .IndexAs indexAs = 2;
*/
java.util.List
getIndexAsList();
/**
* repeated .IndexAs indexAs = 2;
*/
org.lumongo.cluster.message.Lumongo.IndexAs getIndexAs(int index);
/**
* repeated .IndexAs indexAs = 2;
*/
int getIndexAsCount();
/**
* repeated .IndexAs indexAs = 2;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder>
getIndexAsOrBuilderList();
/**
* repeated .IndexAs indexAs = 2;
*/
org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder getIndexAsOrBuilder(
int index);
/**
* repeated .FacetAs facetAs = 3;
*/
java.util.List
getFacetAsList();
/**
* repeated .FacetAs facetAs = 3;
*/
org.lumongo.cluster.message.Lumongo.FacetAs getFacetAs(int index);
/**
* repeated .FacetAs facetAs = 3;
*/
int getFacetAsCount();
/**
* repeated .FacetAs facetAs = 3;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder>
getFacetAsOrBuilderList();
/**
* repeated .FacetAs facetAs = 3;
*/
org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder getFacetAsOrBuilder(
int index);
/**
* optional .SortAs sortAs = 4;
*/
boolean hasSortAs();
/**
* optional .SortAs sortAs = 4;
*/
org.lumongo.cluster.message.Lumongo.SortAs getSortAs();
/**
* optional .SortAs sortAs = 4;
*/
org.lumongo.cluster.message.Lumongo.SortAsOrBuilder getSortAsOrBuilder();
}
/**
* Protobuf type {@code FieldConfig}
*/
public static final class FieldConfig extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:FieldConfig)
FieldConfigOrBuilder {
// Use FieldConfig.newBuilder() to construct.
private FieldConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private FieldConfig(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final FieldConfig defaultInstance;
public static FieldConfig getDefaultInstance() {
return defaultInstance;
}
public FieldConfig getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FieldConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
storedFieldName_ = bs;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
indexAs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
indexAs_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.IndexAs.PARSER, extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
facetAs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
facetAs_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.FacetAs.PARSER, extensionRegistry));
break;
}
case 34: {
org.lumongo.cluster.message.Lumongo.SortAs.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = sortAs_.toBuilder();
}
sortAs_ = input.readMessage(org.lumongo.cluster.message.Lumongo.SortAs.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sortAs_);
sortAs_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
indexAs_ = java.util.Collections.unmodifiableList(indexAs_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
facetAs_ = java.util.Collections.unmodifiableList(facetAs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_FieldConfig_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_FieldConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.FieldConfig.class, org.lumongo.cluster.message.Lumongo.FieldConfig.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public FieldConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldConfig(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int STOREDFIELDNAME_FIELD_NUMBER = 1;
private java.lang.Object storedFieldName_;
/**
* required string storedFieldName = 1;
*/
public boolean hasStoredFieldName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string storedFieldName = 1;
*/
public java.lang.String getStoredFieldName() {
java.lang.Object ref = storedFieldName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
storedFieldName_ = s;
}
return s;
}
}
/**
* required string storedFieldName = 1;
*/
public com.google.protobuf.ByteString
getStoredFieldNameBytes() {
java.lang.Object ref = storedFieldName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storedFieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEXAS_FIELD_NUMBER = 2;
private java.util.List indexAs_;
/**
* repeated .IndexAs indexAs = 2;
*/
public java.util.List getIndexAsList() {
return indexAs_;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder>
getIndexAsOrBuilderList() {
return indexAs_;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public int getIndexAsCount() {
return indexAs_.size();
}
/**
* repeated .IndexAs indexAs = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexAs getIndexAs(int index) {
return indexAs_.get(index);
}
/**
* repeated .IndexAs indexAs = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder getIndexAsOrBuilder(
int index) {
return indexAs_.get(index);
}
public static final int FACETAS_FIELD_NUMBER = 3;
private java.util.List facetAs_;
/**
* repeated .FacetAs facetAs = 3;
*/
public java.util.List getFacetAsList() {
return facetAs_;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder>
getFacetAsOrBuilderList() {
return facetAs_;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public int getFacetAsCount() {
return facetAs_.size();
}
/**
* repeated .FacetAs facetAs = 3;
*/
public org.lumongo.cluster.message.Lumongo.FacetAs getFacetAs(int index) {
return facetAs_.get(index);
}
/**
* repeated .FacetAs facetAs = 3;
*/
public org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder getFacetAsOrBuilder(
int index) {
return facetAs_.get(index);
}
public static final int SORTAS_FIELD_NUMBER = 4;
private org.lumongo.cluster.message.Lumongo.SortAs sortAs_;
/**
* optional .SortAs sortAs = 4;
*/
public boolean hasSortAs() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .SortAs sortAs = 4;
*/
public org.lumongo.cluster.message.Lumongo.SortAs getSortAs() {
return sortAs_;
}
/**
* optional .SortAs sortAs = 4;
*/
public org.lumongo.cluster.message.Lumongo.SortAsOrBuilder getSortAsOrBuilder() {
return sortAs_;
}
private void initFields() {
storedFieldName_ = "";
indexAs_ = java.util.Collections.emptyList();
facetAs_ = java.util.Collections.emptyList();
sortAs_ = org.lumongo.cluster.message.Lumongo.SortAs.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasStoredFieldName()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getIndexAsCount(); i++) {
if (!getIndexAs(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getFacetAsCount(); i++) {
if (!getFacetAs(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasSortAs()) {
if (!getSortAs().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getStoredFieldNameBytes());
}
for (int i = 0; i < indexAs_.size(); i++) {
output.writeMessage(2, indexAs_.get(i));
}
for (int i = 0; i < facetAs_.size(); i++) {
output.writeMessage(3, facetAs_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(4, sortAs_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getStoredFieldNameBytes());
}
for (int i = 0; i < indexAs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, indexAs_.get(i));
}
for (int i = 0; i < facetAs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, facetAs_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, sortAs_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.FieldConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.FieldConfig 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;
}
/**
* Protobuf type {@code FieldConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:FieldConfig)
org.lumongo.cluster.message.Lumongo.FieldConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_FieldConfig_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_FieldConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.FieldConfig.class, org.lumongo.cluster.message.Lumongo.FieldConfig.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.FieldConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIndexAsFieldBuilder();
getFacetAsFieldBuilder();
getSortAsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
storedFieldName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (indexAsBuilder_ == null) {
indexAs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
indexAsBuilder_.clear();
}
if (facetAsBuilder_ == null) {
facetAs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
facetAsBuilder_.clear();
}
if (sortAsBuilder_ == null) {
sortAs_ = org.lumongo.cluster.message.Lumongo.SortAs.getDefaultInstance();
} else {
sortAsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_FieldConfig_descriptor;
}
public org.lumongo.cluster.message.Lumongo.FieldConfig getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.FieldConfig.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.FieldConfig build() {
org.lumongo.cluster.message.Lumongo.FieldConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.FieldConfig buildPartial() {
org.lumongo.cluster.message.Lumongo.FieldConfig result = new org.lumongo.cluster.message.Lumongo.FieldConfig(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.storedFieldName_ = storedFieldName_;
if (indexAsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
indexAs_ = java.util.Collections.unmodifiableList(indexAs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.indexAs_ = indexAs_;
} else {
result.indexAs_ = indexAsBuilder_.build();
}
if (facetAsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
facetAs_ = java.util.Collections.unmodifiableList(facetAs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.facetAs_ = facetAs_;
} else {
result.facetAs_ = facetAsBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000002;
}
if (sortAsBuilder_ == null) {
result.sortAs_ = sortAs_;
} else {
result.sortAs_ = sortAsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.FieldConfig) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.FieldConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.FieldConfig other) {
if (other == org.lumongo.cluster.message.Lumongo.FieldConfig.getDefaultInstance()) return this;
if (other.hasStoredFieldName()) {
bitField0_ |= 0x00000001;
storedFieldName_ = other.storedFieldName_;
onChanged();
}
if (indexAsBuilder_ == null) {
if (!other.indexAs_.isEmpty()) {
if (indexAs_.isEmpty()) {
indexAs_ = other.indexAs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIndexAsIsMutable();
indexAs_.addAll(other.indexAs_);
}
onChanged();
}
} else {
if (!other.indexAs_.isEmpty()) {
if (indexAsBuilder_.isEmpty()) {
indexAsBuilder_.dispose();
indexAsBuilder_ = null;
indexAs_ = other.indexAs_;
bitField0_ = (bitField0_ & ~0x00000002);
indexAsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getIndexAsFieldBuilder() : null;
} else {
indexAsBuilder_.addAllMessages(other.indexAs_);
}
}
}
if (facetAsBuilder_ == null) {
if (!other.facetAs_.isEmpty()) {
if (facetAs_.isEmpty()) {
facetAs_ = other.facetAs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFacetAsIsMutable();
facetAs_.addAll(other.facetAs_);
}
onChanged();
}
} else {
if (!other.facetAs_.isEmpty()) {
if (facetAsBuilder_.isEmpty()) {
facetAsBuilder_.dispose();
facetAsBuilder_ = null;
facetAs_ = other.facetAs_;
bitField0_ = (bitField0_ & ~0x00000004);
facetAsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getFacetAsFieldBuilder() : null;
} else {
facetAsBuilder_.addAllMessages(other.facetAs_);
}
}
}
if (other.hasSortAs()) {
mergeSortAs(other.getSortAs());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasStoredFieldName()) {
return false;
}
for (int i = 0; i < getIndexAsCount(); i++) {
if (!getIndexAs(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getFacetAsCount(); i++) {
if (!getFacetAs(i).isInitialized()) {
return false;
}
}
if (hasSortAs()) {
if (!getSortAs().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.FieldConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.FieldConfig) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object storedFieldName_ = "";
/**
* required string storedFieldName = 1;
*/
public boolean hasStoredFieldName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string storedFieldName = 1;
*/
public java.lang.String getStoredFieldName() {
java.lang.Object ref = storedFieldName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
storedFieldName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string storedFieldName = 1;
*/
public com.google.protobuf.ByteString
getStoredFieldNameBytes() {
java.lang.Object ref = storedFieldName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storedFieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string storedFieldName = 1;
*/
public Builder setStoredFieldName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
storedFieldName_ = value;
onChanged();
return this;
}
/**
* required string storedFieldName = 1;
*/
public Builder clearStoredFieldName() {
bitField0_ = (bitField0_ & ~0x00000001);
storedFieldName_ = getDefaultInstance().getStoredFieldName();
onChanged();
return this;
}
/**
* required string storedFieldName = 1;
*/
public Builder setStoredFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
storedFieldName_ = value;
onChanged();
return this;
}
private java.util.List indexAs_ =
java.util.Collections.emptyList();
private void ensureIndexAsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
indexAs_ = new java.util.ArrayList(indexAs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexAs, org.lumongo.cluster.message.Lumongo.IndexAs.Builder, org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder> indexAsBuilder_;
/**
* repeated .IndexAs indexAs = 2;
*/
public java.util.List getIndexAsList() {
if (indexAsBuilder_ == null) {
return java.util.Collections.unmodifiableList(indexAs_);
} else {
return indexAsBuilder_.getMessageList();
}
}
/**
* repeated .IndexAs indexAs = 2;
*/
public int getIndexAsCount() {
if (indexAsBuilder_ == null) {
return indexAs_.size();
} else {
return indexAsBuilder_.getCount();
}
}
/**
* repeated .IndexAs indexAs = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexAs getIndexAs(int index) {
if (indexAsBuilder_ == null) {
return indexAs_.get(index);
} else {
return indexAsBuilder_.getMessage(index);
}
}
/**
* repeated .IndexAs indexAs = 2;
*/
public Builder setIndexAs(
int index, org.lumongo.cluster.message.Lumongo.IndexAs value) {
if (indexAsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexAsIsMutable();
indexAs_.set(index, value);
onChanged();
} else {
indexAsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public Builder setIndexAs(
int index, org.lumongo.cluster.message.Lumongo.IndexAs.Builder builderForValue) {
if (indexAsBuilder_ == null) {
ensureIndexAsIsMutable();
indexAs_.set(index, builderForValue.build());
onChanged();
} else {
indexAsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public Builder addIndexAs(org.lumongo.cluster.message.Lumongo.IndexAs value) {
if (indexAsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexAsIsMutable();
indexAs_.add(value);
onChanged();
} else {
indexAsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public Builder addIndexAs(
int index, org.lumongo.cluster.message.Lumongo.IndexAs value) {
if (indexAsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexAsIsMutable();
indexAs_.add(index, value);
onChanged();
} else {
indexAsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public Builder addIndexAs(
org.lumongo.cluster.message.Lumongo.IndexAs.Builder builderForValue) {
if (indexAsBuilder_ == null) {
ensureIndexAsIsMutable();
indexAs_.add(builderForValue.build());
onChanged();
} else {
indexAsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public Builder addIndexAs(
int index, org.lumongo.cluster.message.Lumongo.IndexAs.Builder builderForValue) {
if (indexAsBuilder_ == null) {
ensureIndexAsIsMutable();
indexAs_.add(index, builderForValue.build());
onChanged();
} else {
indexAsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public Builder addAllIndexAs(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.IndexAs> values) {
if (indexAsBuilder_ == null) {
ensureIndexAsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indexAs_);
onChanged();
} else {
indexAsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public Builder clearIndexAs() {
if (indexAsBuilder_ == null) {
indexAs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
indexAsBuilder_.clear();
}
return this;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public Builder removeIndexAs(int index) {
if (indexAsBuilder_ == null) {
ensureIndexAsIsMutable();
indexAs_.remove(index);
onChanged();
} else {
indexAsBuilder_.remove(index);
}
return this;
}
/**
* repeated .IndexAs indexAs = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexAs.Builder getIndexAsBuilder(
int index) {
return getIndexAsFieldBuilder().getBuilder(index);
}
/**
* repeated .IndexAs indexAs = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder getIndexAsOrBuilder(
int index) {
if (indexAsBuilder_ == null) {
return indexAs_.get(index); } else {
return indexAsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .IndexAs indexAs = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder>
getIndexAsOrBuilderList() {
if (indexAsBuilder_ != null) {
return indexAsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(indexAs_);
}
}
/**
* repeated .IndexAs indexAs = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexAs.Builder addIndexAsBuilder() {
return getIndexAsFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.IndexAs.getDefaultInstance());
}
/**
* repeated .IndexAs indexAs = 2;
*/
public org.lumongo.cluster.message.Lumongo.IndexAs.Builder addIndexAsBuilder(
int index) {
return getIndexAsFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.IndexAs.getDefaultInstance());
}
/**
* repeated .IndexAs indexAs = 2;
*/
public java.util.List
getIndexAsBuilderList() {
return getIndexAsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexAs, org.lumongo.cluster.message.Lumongo.IndexAs.Builder, org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder>
getIndexAsFieldBuilder() {
if (indexAsBuilder_ == null) {
indexAsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.IndexAs, org.lumongo.cluster.message.Lumongo.IndexAs.Builder, org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder>(
indexAs_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
indexAs_ = null;
}
return indexAsBuilder_;
}
private java.util.List facetAs_ =
java.util.Collections.emptyList();
private void ensureFacetAsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
facetAs_ = new java.util.ArrayList(facetAs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.FacetAs, org.lumongo.cluster.message.Lumongo.FacetAs.Builder, org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder> facetAsBuilder_;
/**
* repeated .FacetAs facetAs = 3;
*/
public java.util.List getFacetAsList() {
if (facetAsBuilder_ == null) {
return java.util.Collections.unmodifiableList(facetAs_);
} else {
return facetAsBuilder_.getMessageList();
}
}
/**
* repeated .FacetAs facetAs = 3;
*/
public int getFacetAsCount() {
if (facetAsBuilder_ == null) {
return facetAs_.size();
} else {
return facetAsBuilder_.getCount();
}
}
/**
* repeated .FacetAs facetAs = 3;
*/
public org.lumongo.cluster.message.Lumongo.FacetAs getFacetAs(int index) {
if (facetAsBuilder_ == null) {
return facetAs_.get(index);
} else {
return facetAsBuilder_.getMessage(index);
}
}
/**
* repeated .FacetAs facetAs = 3;
*/
public Builder setFacetAs(
int index, org.lumongo.cluster.message.Lumongo.FacetAs value) {
if (facetAsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFacetAsIsMutable();
facetAs_.set(index, value);
onChanged();
} else {
facetAsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public Builder setFacetAs(
int index, org.lumongo.cluster.message.Lumongo.FacetAs.Builder builderForValue) {
if (facetAsBuilder_ == null) {
ensureFacetAsIsMutable();
facetAs_.set(index, builderForValue.build());
onChanged();
} else {
facetAsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public Builder addFacetAs(org.lumongo.cluster.message.Lumongo.FacetAs value) {
if (facetAsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFacetAsIsMutable();
facetAs_.add(value);
onChanged();
} else {
facetAsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public Builder addFacetAs(
int index, org.lumongo.cluster.message.Lumongo.FacetAs value) {
if (facetAsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFacetAsIsMutable();
facetAs_.add(index, value);
onChanged();
} else {
facetAsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public Builder addFacetAs(
org.lumongo.cluster.message.Lumongo.FacetAs.Builder builderForValue) {
if (facetAsBuilder_ == null) {
ensureFacetAsIsMutable();
facetAs_.add(builderForValue.build());
onChanged();
} else {
facetAsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public Builder addFacetAs(
int index, org.lumongo.cluster.message.Lumongo.FacetAs.Builder builderForValue) {
if (facetAsBuilder_ == null) {
ensureFacetAsIsMutable();
facetAs_.add(index, builderForValue.build());
onChanged();
} else {
facetAsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public Builder addAllFacetAs(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.FacetAs> values) {
if (facetAsBuilder_ == null) {
ensureFacetAsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, facetAs_);
onChanged();
} else {
facetAsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public Builder clearFacetAs() {
if (facetAsBuilder_ == null) {
facetAs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
facetAsBuilder_.clear();
}
return this;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public Builder removeFacetAs(int index) {
if (facetAsBuilder_ == null) {
ensureFacetAsIsMutable();
facetAs_.remove(index);
onChanged();
} else {
facetAsBuilder_.remove(index);
}
return this;
}
/**
* repeated .FacetAs facetAs = 3;
*/
public org.lumongo.cluster.message.Lumongo.FacetAs.Builder getFacetAsBuilder(
int index) {
return getFacetAsFieldBuilder().getBuilder(index);
}
/**
* repeated .FacetAs facetAs = 3;
*/
public org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder getFacetAsOrBuilder(
int index) {
if (facetAsBuilder_ == null) {
return facetAs_.get(index); } else {
return facetAsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .FacetAs facetAs = 3;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder>
getFacetAsOrBuilderList() {
if (facetAsBuilder_ != null) {
return facetAsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(facetAs_);
}
}
/**
* repeated .FacetAs facetAs = 3;
*/
public org.lumongo.cluster.message.Lumongo.FacetAs.Builder addFacetAsBuilder() {
return getFacetAsFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.FacetAs.getDefaultInstance());
}
/**
* repeated .FacetAs facetAs = 3;
*/
public org.lumongo.cluster.message.Lumongo.FacetAs.Builder addFacetAsBuilder(
int index) {
return getFacetAsFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.FacetAs.getDefaultInstance());
}
/**
* repeated .FacetAs facetAs = 3;
*/
public java.util.List
getFacetAsBuilderList() {
return getFacetAsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.FacetAs, org.lumongo.cluster.message.Lumongo.FacetAs.Builder, org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder>
getFacetAsFieldBuilder() {
if (facetAsBuilder_ == null) {
facetAsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.FacetAs, org.lumongo.cluster.message.Lumongo.FacetAs.Builder, org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder>(
facetAs_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
facetAs_ = null;
}
return facetAsBuilder_;
}
private org.lumongo.cluster.message.Lumongo.SortAs sortAs_ = org.lumongo.cluster.message.Lumongo.SortAs.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.SortAs, org.lumongo.cluster.message.Lumongo.SortAs.Builder, org.lumongo.cluster.message.Lumongo.SortAsOrBuilder> sortAsBuilder_;
/**
* optional .SortAs sortAs = 4;
*/
public boolean hasSortAs() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .SortAs sortAs = 4;
*/
public org.lumongo.cluster.message.Lumongo.SortAs getSortAs() {
if (sortAsBuilder_ == null) {
return sortAs_;
} else {
return sortAsBuilder_.getMessage();
}
}
/**
* optional .SortAs sortAs = 4;
*/
public Builder setSortAs(org.lumongo.cluster.message.Lumongo.SortAs value) {
if (sortAsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sortAs_ = value;
onChanged();
} else {
sortAsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .SortAs sortAs = 4;
*/
public Builder setSortAs(
org.lumongo.cluster.message.Lumongo.SortAs.Builder builderForValue) {
if (sortAsBuilder_ == null) {
sortAs_ = builderForValue.build();
onChanged();
} else {
sortAsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .SortAs sortAs = 4;
*/
public Builder mergeSortAs(org.lumongo.cluster.message.Lumongo.SortAs value) {
if (sortAsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
sortAs_ != org.lumongo.cluster.message.Lumongo.SortAs.getDefaultInstance()) {
sortAs_ =
org.lumongo.cluster.message.Lumongo.SortAs.newBuilder(sortAs_).mergeFrom(value).buildPartial();
} else {
sortAs_ = value;
}
onChanged();
} else {
sortAsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .SortAs sortAs = 4;
*/
public Builder clearSortAs() {
if (sortAsBuilder_ == null) {
sortAs_ = org.lumongo.cluster.message.Lumongo.SortAs.getDefaultInstance();
onChanged();
} else {
sortAsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .SortAs sortAs = 4;
*/
public org.lumongo.cluster.message.Lumongo.SortAs.Builder getSortAsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getSortAsFieldBuilder().getBuilder();
}
/**
* optional .SortAs sortAs = 4;
*/
public org.lumongo.cluster.message.Lumongo.SortAsOrBuilder getSortAsOrBuilder() {
if (sortAsBuilder_ != null) {
return sortAsBuilder_.getMessageOrBuilder();
} else {
return sortAs_;
}
}
/**
* optional .SortAs sortAs = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.SortAs, org.lumongo.cluster.message.Lumongo.SortAs.Builder, org.lumongo.cluster.message.Lumongo.SortAsOrBuilder>
getSortAsFieldBuilder() {
if (sortAsBuilder_ == null) {
sortAsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.SortAs, org.lumongo.cluster.message.Lumongo.SortAs.Builder, org.lumongo.cluster.message.Lumongo.SortAsOrBuilder>(
getSortAs(),
getParentForChildren(),
isClean());
sortAs_ = null;
}
return sortAsBuilder_;
}
// @@protoc_insertion_point(builder_scope:FieldConfig)
}
static {
defaultInstance = new FieldConfig(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:FieldConfig)
}
public interface IndexAsOrBuilder extends
// @@protoc_insertion_point(interface_extends:IndexAs)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexFieldName = 1;
*/
boolean hasIndexFieldName();
/**
* required string indexFieldName = 1;
*/
java.lang.String getIndexFieldName();
/**
* required string indexFieldName = 1;
*/
com.google.protobuf.ByteString
getIndexFieldNameBytes();
/**
* required .LMAnalyzer analyzer = 2;
*/
boolean hasAnalyzer();
/**
* required .LMAnalyzer analyzer = 2;
*/
org.lumongo.cluster.message.Lumongo.LMAnalyzer getAnalyzer();
}
/**
* Protobuf type {@code IndexAs}
*/
public static final class IndexAs extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:IndexAs)
IndexAsOrBuilder {
// Use IndexAs.newBuilder() to construct.
private IndexAs(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IndexAs(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IndexAs defaultInstance;
public static IndexAs getDefaultInstance() {
return defaultInstance;
}
public IndexAs getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexAs(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexFieldName_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
org.lumongo.cluster.message.Lumongo.LMAnalyzer value = org.lumongo.cluster.message.Lumongo.LMAnalyzer.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
analyzer_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexAs_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexAs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexAs.class, org.lumongo.cluster.message.Lumongo.IndexAs.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IndexAs parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexAs(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXFIELDNAME_FIELD_NUMBER = 1;
private java.lang.Object indexFieldName_;
/**
* required string indexFieldName = 1;
*/
public boolean hasIndexFieldName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexFieldName = 1;
*/
public java.lang.String getIndexFieldName() {
java.lang.Object ref = indexFieldName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexFieldName_ = s;
}
return s;
}
}
/**
* required string indexFieldName = 1;
*/
public com.google.protobuf.ByteString
getIndexFieldNameBytes() {
java.lang.Object ref = indexFieldName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexFieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANALYZER_FIELD_NUMBER = 2;
private org.lumongo.cluster.message.Lumongo.LMAnalyzer analyzer_;
/**
* required .LMAnalyzer analyzer = 2;
*/
public boolean hasAnalyzer() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .LMAnalyzer analyzer = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMAnalyzer getAnalyzer() {
return analyzer_;
}
private void initFields() {
indexFieldName_ = "";
analyzer_ = org.lumongo.cluster.message.Lumongo.LMAnalyzer.KEYWORD;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexFieldName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasAnalyzer()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexFieldNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, analyzer_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexFieldNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, analyzer_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexAs parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.IndexAs 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;
}
/**
* Protobuf type {@code IndexAs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:IndexAs)
org.lumongo.cluster.message.Lumongo.IndexAsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexAs_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexAs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexAs.class, org.lumongo.cluster.message.Lumongo.IndexAs.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.IndexAs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
indexFieldName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
analyzer_ = org.lumongo.cluster.message.Lumongo.LMAnalyzer.KEYWORD;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexAs_descriptor;
}
public org.lumongo.cluster.message.Lumongo.IndexAs getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.IndexAs.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.IndexAs build() {
org.lumongo.cluster.message.Lumongo.IndexAs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.IndexAs buildPartial() {
org.lumongo.cluster.message.Lumongo.IndexAs result = new org.lumongo.cluster.message.Lumongo.IndexAs(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexFieldName_ = indexFieldName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.analyzer_ = analyzer_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.IndexAs) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.IndexAs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.IndexAs other) {
if (other == org.lumongo.cluster.message.Lumongo.IndexAs.getDefaultInstance()) return this;
if (other.hasIndexFieldName()) {
bitField0_ |= 0x00000001;
indexFieldName_ = other.indexFieldName_;
onChanged();
}
if (other.hasAnalyzer()) {
setAnalyzer(other.getAnalyzer());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexFieldName()) {
return false;
}
if (!hasAnalyzer()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.IndexAs parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.IndexAs) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexFieldName_ = "";
/**
* required string indexFieldName = 1;
*/
public boolean hasIndexFieldName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexFieldName = 1;
*/
public java.lang.String getIndexFieldName() {
java.lang.Object ref = indexFieldName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexFieldName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexFieldName = 1;
*/
public com.google.protobuf.ByteString
getIndexFieldNameBytes() {
java.lang.Object ref = indexFieldName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexFieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexFieldName = 1;
*/
public Builder setIndexFieldName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexFieldName_ = value;
onChanged();
return this;
}
/**
* required string indexFieldName = 1;
*/
public Builder clearIndexFieldName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexFieldName_ = getDefaultInstance().getIndexFieldName();
onChanged();
return this;
}
/**
* required string indexFieldName = 1;
*/
public Builder setIndexFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexFieldName_ = value;
onChanged();
return this;
}
private org.lumongo.cluster.message.Lumongo.LMAnalyzer analyzer_ = org.lumongo.cluster.message.Lumongo.LMAnalyzer.KEYWORD;
/**
* required .LMAnalyzer analyzer = 2;
*/
public boolean hasAnalyzer() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .LMAnalyzer analyzer = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMAnalyzer getAnalyzer() {
return analyzer_;
}
/**
* required .LMAnalyzer analyzer = 2;
*/
public Builder setAnalyzer(org.lumongo.cluster.message.Lumongo.LMAnalyzer value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
analyzer_ = value;
onChanged();
return this;
}
/**
* required .LMAnalyzer analyzer = 2;
*/
public Builder clearAnalyzer() {
bitField0_ = (bitField0_ & ~0x00000002);
analyzer_ = org.lumongo.cluster.message.Lumongo.LMAnalyzer.KEYWORD;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:IndexAs)
}
static {
defaultInstance = new IndexAs(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IndexAs)
}
public interface FacetAsOrBuilder extends
// @@protoc_insertion_point(interface_extends:FacetAs)
com.google.protobuf.MessageOrBuilder {
/**
* required string facetName = 1;
*/
boolean hasFacetName();
/**
* required string facetName = 1;
*/
java.lang.String getFacetName();
/**
* required string facetName = 1;
*/
com.google.protobuf.ByteString
getFacetNameBytes();
/**
* required .FacetAs.LMFacetType facetType = 2;
*/
boolean hasFacetType();
/**
* required .FacetAs.LMFacetType facetType = 2;
*/
org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType getFacetType();
}
/**
* Protobuf type {@code FacetAs}
*/
public static final class FacetAs extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:FacetAs)
FacetAsOrBuilder {
// Use FacetAs.newBuilder() to construct.
private FacetAs(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private FacetAs(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final FacetAs defaultInstance;
public static FacetAs getDefaultInstance() {
return defaultInstance;
}
public FacetAs getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FacetAs(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
facetName_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType value = org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
facetType_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_FacetAs_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_FacetAs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.FacetAs.class, org.lumongo.cluster.message.Lumongo.FacetAs.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public FacetAs parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FacetAs(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code FacetAs.LMFacetType}
*/
public enum LMFacetType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STANDARD = 1;
*/
STANDARD(0, 1),
/**
* DATE_YYYY_MM_DD = 2;
*/
DATE_YYYY_MM_DD(1, 2),
/**
* DATE_YYYYMMDD = 3;
*/
DATE_YYYYMMDD(2, 3),
;
/**
* STANDARD = 1;
*/
public static final int STANDARD_VALUE = 1;
/**
* DATE_YYYY_MM_DD = 2;
*/
public static final int DATE_YYYY_MM_DD_VALUE = 2;
/**
* DATE_YYYYMMDD = 3;
*/
public static final int DATE_YYYYMMDD_VALUE = 3;
public final int getNumber() { return value; }
public static LMFacetType valueOf(int value) {
switch (value) {
case 1: return STANDARD;
case 2: return DATE_YYYY_MM_DD;
case 3: return DATE_YYYYMMDD;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LMFacetType findValueByNumber(int number) {
return LMFacetType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.FacetAs.getDescriptor().getEnumTypes().get(0);
}
private static final LMFacetType[] VALUES = values();
public static LMFacetType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private LMFacetType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:FacetAs.LMFacetType)
}
private int bitField0_;
public static final int FACETNAME_FIELD_NUMBER = 1;
private java.lang.Object facetName_;
/**
* required string facetName = 1;
*/
public boolean hasFacetName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string facetName = 1;
*/
public java.lang.String getFacetName() {
java.lang.Object ref = facetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
facetName_ = s;
}
return s;
}
}
/**
* required string facetName = 1;
*/
public com.google.protobuf.ByteString
getFacetNameBytes() {
java.lang.Object ref = facetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
facetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FACETTYPE_FIELD_NUMBER = 2;
private org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType facetType_;
/**
* required .FacetAs.LMFacetType facetType = 2;
*/
public boolean hasFacetType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .FacetAs.LMFacetType facetType = 2;
*/
public org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType getFacetType() {
return facetType_;
}
private void initFields() {
facetName_ = "";
facetType_ = org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType.STANDARD;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasFacetName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasFacetType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getFacetNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, facetType_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getFacetNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, facetType_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.FacetAs parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.FacetAs 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;
}
/**
* Protobuf type {@code FacetAs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:FacetAs)
org.lumongo.cluster.message.Lumongo.FacetAsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_FacetAs_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_FacetAs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.FacetAs.class, org.lumongo.cluster.message.Lumongo.FacetAs.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.FacetAs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
facetName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
facetType_ = org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType.STANDARD;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_FacetAs_descriptor;
}
public org.lumongo.cluster.message.Lumongo.FacetAs getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.FacetAs.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.FacetAs build() {
org.lumongo.cluster.message.Lumongo.FacetAs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.FacetAs buildPartial() {
org.lumongo.cluster.message.Lumongo.FacetAs result = new org.lumongo.cluster.message.Lumongo.FacetAs(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.facetName_ = facetName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.facetType_ = facetType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.FacetAs) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.FacetAs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.FacetAs other) {
if (other == org.lumongo.cluster.message.Lumongo.FacetAs.getDefaultInstance()) return this;
if (other.hasFacetName()) {
bitField0_ |= 0x00000001;
facetName_ = other.facetName_;
onChanged();
}
if (other.hasFacetType()) {
setFacetType(other.getFacetType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasFacetName()) {
return false;
}
if (!hasFacetType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.FacetAs parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.FacetAs) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object facetName_ = "";
/**
* required string facetName = 1;
*/
public boolean hasFacetName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string facetName = 1;
*/
public java.lang.String getFacetName() {
java.lang.Object ref = facetName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
facetName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string facetName = 1;
*/
public com.google.protobuf.ByteString
getFacetNameBytes() {
java.lang.Object ref = facetName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
facetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string facetName = 1;
*/
public Builder setFacetName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
facetName_ = value;
onChanged();
return this;
}
/**
* required string facetName = 1;
*/
public Builder clearFacetName() {
bitField0_ = (bitField0_ & ~0x00000001);
facetName_ = getDefaultInstance().getFacetName();
onChanged();
return this;
}
/**
* required string facetName = 1;
*/
public Builder setFacetNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
facetName_ = value;
onChanged();
return this;
}
private org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType facetType_ = org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType.STANDARD;
/**
* required .FacetAs.LMFacetType facetType = 2;
*/
public boolean hasFacetType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .FacetAs.LMFacetType facetType = 2;
*/
public org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType getFacetType() {
return facetType_;
}
/**
* required .FacetAs.LMFacetType facetType = 2;
*/
public Builder setFacetType(org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
facetType_ = value;
onChanged();
return this;
}
/**
* required .FacetAs.LMFacetType facetType = 2;
*/
public Builder clearFacetType() {
bitField0_ = (bitField0_ & ~0x00000002);
facetType_ = org.lumongo.cluster.message.Lumongo.FacetAs.LMFacetType.STANDARD;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:FacetAs)
}
static {
defaultInstance = new FacetAs(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:FacetAs)
}
public interface SortAsOrBuilder extends
// @@protoc_insertion_point(interface_extends:SortAs)
com.google.protobuf.MessageOrBuilder {
/**
* required string sortFieldName = 1;
*/
boolean hasSortFieldName();
/**
* required string sortFieldName = 1;
*/
java.lang.String getSortFieldName();
/**
* required string sortFieldName = 1;
*/
com.google.protobuf.ByteString
getSortFieldNameBytes();
/**
* required .SortAs.SortType sortType = 2;
*/
boolean hasSortType();
/**
* required .SortAs.SortType sortType = 2;
*/
org.lumongo.cluster.message.Lumongo.SortAs.SortType getSortType();
}
/**
* Protobuf type {@code SortAs}
*/
public static final class SortAs extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:SortAs)
SortAsOrBuilder {
// Use SortAs.newBuilder() to construct.
private SortAs(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SortAs(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SortAs defaultInstance;
public static SortAs getDefaultInstance() {
return defaultInstance;
}
public SortAs getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SortAs(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
sortFieldName_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
org.lumongo.cluster.message.Lumongo.SortAs.SortType value = org.lumongo.cluster.message.Lumongo.SortAs.SortType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
sortType_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_SortAs_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_SortAs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.SortAs.class, org.lumongo.cluster.message.Lumongo.SortAs.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SortAs parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SortAs(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code SortAs.SortType}
*/
public enum SortType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STRING = 1;
*/
STRING(0, 1),
/**
* NUMERIC_INT = 2;
*/
NUMERIC_INT(1, 2),
/**
* NUMERIC_LONG = 3;
*/
NUMERIC_LONG(2, 3),
/**
* NUMERIC_FLOAT = 4;
*/
NUMERIC_FLOAT(3, 4),
/**
* NUMERIC_DOUBLE = 5;
*/
NUMERIC_DOUBLE(4, 5),
/**
* DATE = 6;
*/
DATE(5, 6),
;
/**
* STRING = 1;
*/
public static final int STRING_VALUE = 1;
/**
* NUMERIC_INT = 2;
*/
public static final int NUMERIC_INT_VALUE = 2;
/**
* NUMERIC_LONG = 3;
*/
public static final int NUMERIC_LONG_VALUE = 3;
/**
* NUMERIC_FLOAT = 4;
*/
public static final int NUMERIC_FLOAT_VALUE = 4;
/**
* NUMERIC_DOUBLE = 5;
*/
public static final int NUMERIC_DOUBLE_VALUE = 5;
/**
* DATE = 6;
*/
public static final int DATE_VALUE = 6;
public final int getNumber() { return value; }
public static SortType valueOf(int value) {
switch (value) {
case 1: return STRING;
case 2: return NUMERIC_INT;
case 3: return NUMERIC_LONG;
case 4: return NUMERIC_FLOAT;
case 5: return NUMERIC_DOUBLE;
case 6: return DATE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SortType findValueByNumber(int number) {
return SortType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.SortAs.getDescriptor().getEnumTypes().get(0);
}
private static final SortType[] VALUES = values();
public static SortType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private SortType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:SortAs.SortType)
}
private int bitField0_;
public static final int SORTFIELDNAME_FIELD_NUMBER = 1;
private java.lang.Object sortFieldName_;
/**
* required string sortFieldName = 1;
*/
public boolean hasSortFieldName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string sortFieldName = 1;
*/
public java.lang.String getSortFieldName() {
java.lang.Object ref = sortFieldName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
sortFieldName_ = s;
}
return s;
}
}
/**
* required string sortFieldName = 1;
*/
public com.google.protobuf.ByteString
getSortFieldNameBytes() {
java.lang.Object ref = sortFieldName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sortFieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SORTTYPE_FIELD_NUMBER = 2;
private org.lumongo.cluster.message.Lumongo.SortAs.SortType sortType_;
/**
* required .SortAs.SortType sortType = 2;
*/
public boolean hasSortType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .SortAs.SortType sortType = 2;
*/
public org.lumongo.cluster.message.Lumongo.SortAs.SortType getSortType() {
return sortType_;
}
private void initFields() {
sortFieldName_ = "";
sortType_ = org.lumongo.cluster.message.Lumongo.SortAs.SortType.STRING;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSortFieldName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSortType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getSortFieldNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, sortType_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getSortFieldNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, sortType_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.SortAs parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.SortAs 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;
}
/**
* Protobuf type {@code SortAs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:SortAs)
org.lumongo.cluster.message.Lumongo.SortAsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_SortAs_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_SortAs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.SortAs.class, org.lumongo.cluster.message.Lumongo.SortAs.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.SortAs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
sortFieldName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
sortType_ = org.lumongo.cluster.message.Lumongo.SortAs.SortType.STRING;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_SortAs_descriptor;
}
public org.lumongo.cluster.message.Lumongo.SortAs getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.SortAs.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.SortAs build() {
org.lumongo.cluster.message.Lumongo.SortAs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.SortAs buildPartial() {
org.lumongo.cluster.message.Lumongo.SortAs result = new org.lumongo.cluster.message.Lumongo.SortAs(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.sortFieldName_ = sortFieldName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.sortType_ = sortType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.SortAs) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.SortAs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.SortAs other) {
if (other == org.lumongo.cluster.message.Lumongo.SortAs.getDefaultInstance()) return this;
if (other.hasSortFieldName()) {
bitField0_ |= 0x00000001;
sortFieldName_ = other.sortFieldName_;
onChanged();
}
if (other.hasSortType()) {
setSortType(other.getSortType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSortFieldName()) {
return false;
}
if (!hasSortType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.SortAs parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.SortAs) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object sortFieldName_ = "";
/**
* required string sortFieldName = 1;
*/
public boolean hasSortFieldName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string sortFieldName = 1;
*/
public java.lang.String getSortFieldName() {
java.lang.Object ref = sortFieldName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
sortFieldName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string sortFieldName = 1;
*/
public com.google.protobuf.ByteString
getSortFieldNameBytes() {
java.lang.Object ref = sortFieldName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sortFieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string sortFieldName = 1;
*/
public Builder setSortFieldName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
sortFieldName_ = value;
onChanged();
return this;
}
/**
* required string sortFieldName = 1;
*/
public Builder clearSortFieldName() {
bitField0_ = (bitField0_ & ~0x00000001);
sortFieldName_ = getDefaultInstance().getSortFieldName();
onChanged();
return this;
}
/**
* required string sortFieldName = 1;
*/
public Builder setSortFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
sortFieldName_ = value;
onChanged();
return this;
}
private org.lumongo.cluster.message.Lumongo.SortAs.SortType sortType_ = org.lumongo.cluster.message.Lumongo.SortAs.SortType.STRING;
/**
* required .SortAs.SortType sortType = 2;
*/
public boolean hasSortType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .SortAs.SortType sortType = 2;
*/
public org.lumongo.cluster.message.Lumongo.SortAs.SortType getSortType() {
return sortType_;
}
/**
* required .SortAs.SortType sortType = 2;
*/
public Builder setSortType(org.lumongo.cluster.message.Lumongo.SortAs.SortType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
sortType_ = value;
onChanged();
return this;
}
/**
* required .SortAs.SortType sortType = 2;
*/
public Builder clearSortType() {
bitField0_ = (bitField0_ & ~0x00000002);
sortType_ = org.lumongo.cluster.message.Lumongo.SortAs.SortType.STRING;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:SortAs)
}
static {
defaultInstance = new SortAs(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:SortAs)
}
public interface IndexSettingsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:IndexSettingsResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code IndexSettingsResponse}
*/
public static final class IndexSettingsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:IndexSettingsResponse)
IndexSettingsResponseOrBuilder {
// Use IndexSettingsResponse.newBuilder() to construct.
private IndexSettingsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IndexSettingsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IndexSettingsResponse defaultInstance;
public static IndexSettingsResponse getDefaultInstance() {
return defaultInstance;
}
public IndexSettingsResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexSettingsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexSettingsResponse.class, org.lumongo.cluster.message.Lumongo.IndexSettingsResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IndexSettingsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexSettingsResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.IndexSettingsResponse 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;
}
/**
* Protobuf type {@code IndexSettingsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:IndexSettingsResponse)
org.lumongo.cluster.message.Lumongo.IndexSettingsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexSettingsResponse.class, org.lumongo.cluster.message.Lumongo.IndexSettingsResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.IndexSettingsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexSettingsResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.IndexSettingsResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.IndexSettingsResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.IndexSettingsResponse build() {
org.lumongo.cluster.message.Lumongo.IndexSettingsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.IndexSettingsResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.IndexSettingsResponse result = new org.lumongo.cluster.message.Lumongo.IndexSettingsResponse(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.IndexSettingsResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.IndexSettingsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.IndexSettingsResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.IndexSettingsResponse.getDefaultInstance()) return this;
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 {
org.lumongo.cluster.message.Lumongo.IndexSettingsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.IndexSettingsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:IndexSettingsResponse)
}
static {
defaultInstance = new IndexSettingsResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IndexSettingsResponse)
}
public interface IndexDeleteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:IndexDeleteRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required string indexName = 1;
*/
boolean hasIndexName();
/**
* required string indexName = 1;
*/
java.lang.String getIndexName();
/**
* required string indexName = 1;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
}
/**
* Protobuf type {@code IndexDeleteRequest}
*/
public static final class IndexDeleteRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:IndexDeleteRequest)
IndexDeleteRequestOrBuilder {
// Use IndexDeleteRequest.newBuilder() to construct.
private IndexDeleteRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IndexDeleteRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IndexDeleteRequest defaultInstance;
public static IndexDeleteRequest getDefaultInstance() {
return defaultInstance;
}
public IndexDeleteRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexDeleteRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
indexName_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexDeleteRequest.class, org.lumongo.cluster.message.Lumongo.IndexDeleteRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IndexDeleteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexDeleteRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXNAME_FIELD_NUMBER = 1;
private java.lang.Object indexName_;
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
indexName_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIndexNameBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIndexNameBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.IndexDeleteRequest 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;
}
/**
* Protobuf type {@code IndexDeleteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:IndexDeleteRequest)
org.lumongo.cluster.message.Lumongo.IndexDeleteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexDeleteRequest.class, org.lumongo.cluster.message.Lumongo.IndexDeleteRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.IndexDeleteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.IndexDeleteRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.IndexDeleteRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.IndexDeleteRequest build() {
org.lumongo.cluster.message.Lumongo.IndexDeleteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.IndexDeleteRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.IndexDeleteRequest result = new org.lumongo.cluster.message.Lumongo.IndexDeleteRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.indexName_ = indexName_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.IndexDeleteRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.IndexDeleteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.IndexDeleteRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.IndexDeleteRequest.getDefaultInstance()) return this;
if (other.hasIndexName()) {
bitField0_ |= 0x00000001;
indexName_ = other.indexName_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasIndexName()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.IndexDeleteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.IndexDeleteRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
* required string indexName = 1;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string indexName = 1;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 1;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 1;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 1;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
indexName_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:IndexDeleteRequest)
}
static {
defaultInstance = new IndexDeleteRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IndexDeleteRequest)
}
public interface IndexDeleteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:IndexDeleteResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code IndexDeleteResponse}
*/
public static final class IndexDeleteResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:IndexDeleteResponse)
IndexDeleteResponseOrBuilder {
// Use IndexDeleteResponse.newBuilder() to construct.
private IndexDeleteResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IndexDeleteResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IndexDeleteResponse defaultInstance;
public static IndexDeleteResponse getDefaultInstance() {
return defaultInstance;
}
public IndexDeleteResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexDeleteResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexDeleteResponse.class, org.lumongo.cluster.message.Lumongo.IndexDeleteResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public IndexDeleteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexDeleteResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.IndexDeleteResponse 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;
}
/**
* Protobuf type {@code IndexDeleteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:IndexDeleteResponse)
org.lumongo.cluster.message.Lumongo.IndexDeleteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.IndexDeleteResponse.class, org.lumongo.cluster.message.Lumongo.IndexDeleteResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.IndexDeleteResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_IndexDeleteResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.IndexDeleteResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.IndexDeleteResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.IndexDeleteResponse build() {
org.lumongo.cluster.message.Lumongo.IndexDeleteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.IndexDeleteResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.IndexDeleteResponse result = new org.lumongo.cluster.message.Lumongo.IndexDeleteResponse(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.IndexDeleteResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.IndexDeleteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.IndexDeleteResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.IndexDeleteResponse.getDefaultInstance()) return this;
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 {
org.lumongo.cluster.message.Lumongo.IndexDeleteResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.IndexDeleteResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:IndexDeleteResponse)
}
static {
defaultInstance = new IndexDeleteResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IndexDeleteResponse)
}
public interface StoreRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:StoreRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required string uniqueId = 1;
*/
boolean hasUniqueId();
/**
* required string uniqueId = 1;
*/
java.lang.String getUniqueId();
/**
* required string uniqueId = 1;
*/
com.google.protobuf.ByteString
getUniqueIdBytes();
/**
* required string indexName = 2;
*/
boolean hasIndexName();
/**
* required string indexName = 2;
*/
java.lang.String getIndexName();
/**
* required string indexName = 2;
*/
com.google.protobuf.ByteString
getIndexNameBytes();
/**
* optional .ResultDocument resultDocument = 3;
*/
boolean hasResultDocument();
/**
* optional .ResultDocument resultDocument = 3;
*/
org.lumongo.cluster.message.Lumongo.ResultDocument getResultDocument();
/**
* optional .ResultDocument resultDocument = 3;
*/
org.lumongo.cluster.message.Lumongo.ResultDocumentOrBuilder getResultDocumentOrBuilder();
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
java.util.List
getAssociatedDocumentList();
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
org.lumongo.cluster.message.Lumongo.AssociatedDocument getAssociatedDocument(int index);
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
int getAssociatedDocumentCount();
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.AssociatedDocumentOrBuilder>
getAssociatedDocumentOrBuilderList();
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
org.lumongo.cluster.message.Lumongo.AssociatedDocumentOrBuilder getAssociatedDocumentOrBuilder(
int index);
/**
* optional bool clearExistingAssociated = 5 [default = false];
*/
boolean hasClearExistingAssociated();
/**
* optional bool clearExistingAssociated = 5 [default = false];
*/
boolean getClearExistingAssociated();
}
/**
* Protobuf type {@code StoreRequest}
*/
public static final class StoreRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:StoreRequest)
StoreRequestOrBuilder {
// Use StoreRequest.newBuilder() to construct.
private StoreRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StoreRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StoreRequest defaultInstance;
public static StoreRequest getDefaultInstance() {
return defaultInstance;
}
public StoreRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StoreRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
uniqueId_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
indexName_ = bs;
break;
}
case 26: {
org.lumongo.cluster.message.Lumongo.ResultDocument.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = resultDocument_.toBuilder();
}
resultDocument_ = input.readMessage(org.lumongo.cluster.message.Lumongo.ResultDocument.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resultDocument_);
resultDocument_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
associatedDocument_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
associatedDocument_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.AssociatedDocument.PARSER, extensionRegistry));
break;
}
case 40: {
bitField0_ |= 0x00000008;
clearExistingAssociated_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
associatedDocument_ = java.util.Collections.unmodifiableList(associatedDocument_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.StoreRequest.class, org.lumongo.cluster.message.Lumongo.StoreRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StoreRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StoreRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int UNIQUEID_FIELD_NUMBER = 1;
private java.lang.Object uniqueId_;
/**
* required string uniqueId = 1;
*/
public boolean hasUniqueId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string uniqueId = 1;
*/
public java.lang.String getUniqueId() {
java.lang.Object ref = uniqueId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
uniqueId_ = s;
}
return s;
}
}
/**
* required string uniqueId = 1;
*/
public com.google.protobuf.ByteString
getUniqueIdBytes() {
java.lang.Object ref = uniqueId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uniqueId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEXNAME_FIELD_NUMBER = 2;
private java.lang.Object indexName_;
/**
* required string indexName = 2;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string indexName = 2;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
}
}
/**
* required string indexName = 2;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESULTDOCUMENT_FIELD_NUMBER = 3;
private org.lumongo.cluster.message.Lumongo.ResultDocument resultDocument_;
/**
* optional .ResultDocument resultDocument = 3;
*/
public boolean hasResultDocument() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .ResultDocument resultDocument = 3;
*/
public org.lumongo.cluster.message.Lumongo.ResultDocument getResultDocument() {
return resultDocument_;
}
/**
* optional .ResultDocument resultDocument = 3;
*/
public org.lumongo.cluster.message.Lumongo.ResultDocumentOrBuilder getResultDocumentOrBuilder() {
return resultDocument_;
}
public static final int ASSOCIATEDDOCUMENT_FIELD_NUMBER = 4;
private java.util.List associatedDocument_;
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public java.util.List getAssociatedDocumentList() {
return associatedDocument_;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.AssociatedDocumentOrBuilder>
getAssociatedDocumentOrBuilderList() {
return associatedDocument_;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public int getAssociatedDocumentCount() {
return associatedDocument_.size();
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public org.lumongo.cluster.message.Lumongo.AssociatedDocument getAssociatedDocument(int index) {
return associatedDocument_.get(index);
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public org.lumongo.cluster.message.Lumongo.AssociatedDocumentOrBuilder getAssociatedDocumentOrBuilder(
int index) {
return associatedDocument_.get(index);
}
public static final int CLEAREXISTINGASSOCIATED_FIELD_NUMBER = 5;
private boolean clearExistingAssociated_;
/**
* optional bool clearExistingAssociated = 5 [default = false];
*/
public boolean hasClearExistingAssociated() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool clearExistingAssociated = 5 [default = false];
*/
public boolean getClearExistingAssociated() {
return clearExistingAssociated_;
}
private void initFields() {
uniqueId_ = "";
indexName_ = "";
resultDocument_ = org.lumongo.cluster.message.Lumongo.ResultDocument.getDefaultInstance();
associatedDocument_ = java.util.Collections.emptyList();
clearExistingAssociated_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasUniqueId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasIndexName()) {
memoizedIsInitialized = 0;
return false;
}
if (hasResultDocument()) {
if (!getResultDocument().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getAssociatedDocumentCount(); i++) {
if (!getAssociatedDocument(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getUniqueIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getIndexNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, resultDocument_);
}
for (int i = 0; i < associatedDocument_.size(); i++) {
output.writeMessage(4, associatedDocument_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(5, clearExistingAssociated_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getUniqueIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getIndexNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, resultDocument_);
}
for (int i = 0; i < associatedDocument_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, associatedDocument_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, clearExistingAssociated_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.StoreRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.StoreRequest 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;
}
/**
* Protobuf type {@code StoreRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:StoreRequest)
org.lumongo.cluster.message.Lumongo.StoreRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.StoreRequest.class, org.lumongo.cluster.message.Lumongo.StoreRequest.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.StoreRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getResultDocumentFieldBuilder();
getAssociatedDocumentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
uniqueId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
indexName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (resultDocumentBuilder_ == null) {
resultDocument_ = org.lumongo.cluster.message.Lumongo.ResultDocument.getDefaultInstance();
} else {
resultDocumentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (associatedDocumentBuilder_ == null) {
associatedDocument_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
associatedDocumentBuilder_.clear();
}
clearExistingAssociated_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreRequest_descriptor;
}
public org.lumongo.cluster.message.Lumongo.StoreRequest getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.StoreRequest.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.StoreRequest build() {
org.lumongo.cluster.message.Lumongo.StoreRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.StoreRequest buildPartial() {
org.lumongo.cluster.message.Lumongo.StoreRequest result = new org.lumongo.cluster.message.Lumongo.StoreRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.uniqueId_ = uniqueId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.indexName_ = indexName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (resultDocumentBuilder_ == null) {
result.resultDocument_ = resultDocument_;
} else {
result.resultDocument_ = resultDocumentBuilder_.build();
}
if (associatedDocumentBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
associatedDocument_ = java.util.Collections.unmodifiableList(associatedDocument_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.associatedDocument_ = associatedDocument_;
} else {
result.associatedDocument_ = associatedDocumentBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
result.clearExistingAssociated_ = clearExistingAssociated_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.StoreRequest) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.StoreRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.StoreRequest other) {
if (other == org.lumongo.cluster.message.Lumongo.StoreRequest.getDefaultInstance()) return this;
if (other.hasUniqueId()) {
bitField0_ |= 0x00000001;
uniqueId_ = other.uniqueId_;
onChanged();
}
if (other.hasIndexName()) {
bitField0_ |= 0x00000002;
indexName_ = other.indexName_;
onChanged();
}
if (other.hasResultDocument()) {
mergeResultDocument(other.getResultDocument());
}
if (associatedDocumentBuilder_ == null) {
if (!other.associatedDocument_.isEmpty()) {
if (associatedDocument_.isEmpty()) {
associatedDocument_ = other.associatedDocument_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAssociatedDocumentIsMutable();
associatedDocument_.addAll(other.associatedDocument_);
}
onChanged();
}
} else {
if (!other.associatedDocument_.isEmpty()) {
if (associatedDocumentBuilder_.isEmpty()) {
associatedDocumentBuilder_.dispose();
associatedDocumentBuilder_ = null;
associatedDocument_ = other.associatedDocument_;
bitField0_ = (bitField0_ & ~0x00000008);
associatedDocumentBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAssociatedDocumentFieldBuilder() : null;
} else {
associatedDocumentBuilder_.addAllMessages(other.associatedDocument_);
}
}
}
if (other.hasClearExistingAssociated()) {
setClearExistingAssociated(other.getClearExistingAssociated());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasUniqueId()) {
return false;
}
if (!hasIndexName()) {
return false;
}
if (hasResultDocument()) {
if (!getResultDocument().isInitialized()) {
return false;
}
}
for (int i = 0; i < getAssociatedDocumentCount(); i++) {
if (!getAssociatedDocument(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.StoreRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.StoreRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object uniqueId_ = "";
/**
* required string uniqueId = 1;
*/
public boolean hasUniqueId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string uniqueId = 1;
*/
public java.lang.String getUniqueId() {
java.lang.Object ref = uniqueId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
uniqueId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string uniqueId = 1;
*/
public com.google.protobuf.ByteString
getUniqueIdBytes() {
java.lang.Object ref = uniqueId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uniqueId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string uniqueId = 1;
*/
public Builder setUniqueId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
uniqueId_ = value;
onChanged();
return this;
}
/**
* required string uniqueId = 1;
*/
public Builder clearUniqueId() {
bitField0_ = (bitField0_ & ~0x00000001);
uniqueId_ = getDefaultInstance().getUniqueId();
onChanged();
return this;
}
/**
* required string uniqueId = 1;
*/
public Builder setUniqueIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
uniqueId_ = value;
onChanged();
return this;
}
private java.lang.Object indexName_ = "";
/**
* required string indexName = 2;
*/
public boolean hasIndexName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string indexName = 2;
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
indexName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string indexName = 2;
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string indexName = 2;
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
indexName_ = value;
onChanged();
return this;
}
/**
* required string indexName = 2;
*/
public Builder clearIndexName() {
bitField0_ = (bitField0_ & ~0x00000002);
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
* required string indexName = 2;
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
indexName_ = value;
onChanged();
return this;
}
private org.lumongo.cluster.message.Lumongo.ResultDocument resultDocument_ = org.lumongo.cluster.message.Lumongo.ResultDocument.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.ResultDocument, org.lumongo.cluster.message.Lumongo.ResultDocument.Builder, org.lumongo.cluster.message.Lumongo.ResultDocumentOrBuilder> resultDocumentBuilder_;
/**
* optional .ResultDocument resultDocument = 3;
*/
public boolean hasResultDocument() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .ResultDocument resultDocument = 3;
*/
public org.lumongo.cluster.message.Lumongo.ResultDocument getResultDocument() {
if (resultDocumentBuilder_ == null) {
return resultDocument_;
} else {
return resultDocumentBuilder_.getMessage();
}
}
/**
* optional .ResultDocument resultDocument = 3;
*/
public Builder setResultDocument(org.lumongo.cluster.message.Lumongo.ResultDocument value) {
if (resultDocumentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resultDocument_ = value;
onChanged();
} else {
resultDocumentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .ResultDocument resultDocument = 3;
*/
public Builder setResultDocument(
org.lumongo.cluster.message.Lumongo.ResultDocument.Builder builderForValue) {
if (resultDocumentBuilder_ == null) {
resultDocument_ = builderForValue.build();
onChanged();
} else {
resultDocumentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .ResultDocument resultDocument = 3;
*/
public Builder mergeResultDocument(org.lumongo.cluster.message.Lumongo.ResultDocument value) {
if (resultDocumentBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
resultDocument_ != org.lumongo.cluster.message.Lumongo.ResultDocument.getDefaultInstance()) {
resultDocument_ =
org.lumongo.cluster.message.Lumongo.ResultDocument.newBuilder(resultDocument_).mergeFrom(value).buildPartial();
} else {
resultDocument_ = value;
}
onChanged();
} else {
resultDocumentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .ResultDocument resultDocument = 3;
*/
public Builder clearResultDocument() {
if (resultDocumentBuilder_ == null) {
resultDocument_ = org.lumongo.cluster.message.Lumongo.ResultDocument.getDefaultInstance();
onChanged();
} else {
resultDocumentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .ResultDocument resultDocument = 3;
*/
public org.lumongo.cluster.message.Lumongo.ResultDocument.Builder getResultDocumentBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getResultDocumentFieldBuilder().getBuilder();
}
/**
* optional .ResultDocument resultDocument = 3;
*/
public org.lumongo.cluster.message.Lumongo.ResultDocumentOrBuilder getResultDocumentOrBuilder() {
if (resultDocumentBuilder_ != null) {
return resultDocumentBuilder_.getMessageOrBuilder();
} else {
return resultDocument_;
}
}
/**
* optional .ResultDocument resultDocument = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.ResultDocument, org.lumongo.cluster.message.Lumongo.ResultDocument.Builder, org.lumongo.cluster.message.Lumongo.ResultDocumentOrBuilder>
getResultDocumentFieldBuilder() {
if (resultDocumentBuilder_ == null) {
resultDocumentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.lumongo.cluster.message.Lumongo.ResultDocument, org.lumongo.cluster.message.Lumongo.ResultDocument.Builder, org.lumongo.cluster.message.Lumongo.ResultDocumentOrBuilder>(
getResultDocument(),
getParentForChildren(),
isClean());
resultDocument_ = null;
}
return resultDocumentBuilder_;
}
private java.util.List associatedDocument_ =
java.util.Collections.emptyList();
private void ensureAssociatedDocumentIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
associatedDocument_ = new java.util.ArrayList(associatedDocument_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.AssociatedDocument, org.lumongo.cluster.message.Lumongo.AssociatedDocument.Builder, org.lumongo.cluster.message.Lumongo.AssociatedDocumentOrBuilder> associatedDocumentBuilder_;
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public java.util.List getAssociatedDocumentList() {
if (associatedDocumentBuilder_ == null) {
return java.util.Collections.unmodifiableList(associatedDocument_);
} else {
return associatedDocumentBuilder_.getMessageList();
}
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public int getAssociatedDocumentCount() {
if (associatedDocumentBuilder_ == null) {
return associatedDocument_.size();
} else {
return associatedDocumentBuilder_.getCount();
}
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public org.lumongo.cluster.message.Lumongo.AssociatedDocument getAssociatedDocument(int index) {
if (associatedDocumentBuilder_ == null) {
return associatedDocument_.get(index);
} else {
return associatedDocumentBuilder_.getMessage(index);
}
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public Builder setAssociatedDocument(
int index, org.lumongo.cluster.message.Lumongo.AssociatedDocument value) {
if (associatedDocumentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssociatedDocumentIsMutable();
associatedDocument_.set(index, value);
onChanged();
} else {
associatedDocumentBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public Builder setAssociatedDocument(
int index, org.lumongo.cluster.message.Lumongo.AssociatedDocument.Builder builderForValue) {
if (associatedDocumentBuilder_ == null) {
ensureAssociatedDocumentIsMutable();
associatedDocument_.set(index, builderForValue.build());
onChanged();
} else {
associatedDocumentBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public Builder addAssociatedDocument(org.lumongo.cluster.message.Lumongo.AssociatedDocument value) {
if (associatedDocumentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssociatedDocumentIsMutable();
associatedDocument_.add(value);
onChanged();
} else {
associatedDocumentBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public Builder addAssociatedDocument(
int index, org.lumongo.cluster.message.Lumongo.AssociatedDocument value) {
if (associatedDocumentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssociatedDocumentIsMutable();
associatedDocument_.add(index, value);
onChanged();
} else {
associatedDocumentBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public Builder addAssociatedDocument(
org.lumongo.cluster.message.Lumongo.AssociatedDocument.Builder builderForValue) {
if (associatedDocumentBuilder_ == null) {
ensureAssociatedDocumentIsMutable();
associatedDocument_.add(builderForValue.build());
onChanged();
} else {
associatedDocumentBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public Builder addAssociatedDocument(
int index, org.lumongo.cluster.message.Lumongo.AssociatedDocument.Builder builderForValue) {
if (associatedDocumentBuilder_ == null) {
ensureAssociatedDocumentIsMutable();
associatedDocument_.add(index, builderForValue.build());
onChanged();
} else {
associatedDocumentBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public Builder addAllAssociatedDocument(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.AssociatedDocument> values) {
if (associatedDocumentBuilder_ == null) {
ensureAssociatedDocumentIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, associatedDocument_);
onChanged();
} else {
associatedDocumentBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public Builder clearAssociatedDocument() {
if (associatedDocumentBuilder_ == null) {
associatedDocument_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
associatedDocumentBuilder_.clear();
}
return this;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public Builder removeAssociatedDocument(int index) {
if (associatedDocumentBuilder_ == null) {
ensureAssociatedDocumentIsMutable();
associatedDocument_.remove(index);
onChanged();
} else {
associatedDocumentBuilder_.remove(index);
}
return this;
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public org.lumongo.cluster.message.Lumongo.AssociatedDocument.Builder getAssociatedDocumentBuilder(
int index) {
return getAssociatedDocumentFieldBuilder().getBuilder(index);
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public org.lumongo.cluster.message.Lumongo.AssociatedDocumentOrBuilder getAssociatedDocumentOrBuilder(
int index) {
if (associatedDocumentBuilder_ == null) {
return associatedDocument_.get(index); } else {
return associatedDocumentBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.AssociatedDocumentOrBuilder>
getAssociatedDocumentOrBuilderList() {
if (associatedDocumentBuilder_ != null) {
return associatedDocumentBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(associatedDocument_);
}
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public org.lumongo.cluster.message.Lumongo.AssociatedDocument.Builder addAssociatedDocumentBuilder() {
return getAssociatedDocumentFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.AssociatedDocument.getDefaultInstance());
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public org.lumongo.cluster.message.Lumongo.AssociatedDocument.Builder addAssociatedDocumentBuilder(
int index) {
return getAssociatedDocumentFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.AssociatedDocument.getDefaultInstance());
}
/**
* repeated .AssociatedDocument associatedDocument = 4;
*/
public java.util.List
getAssociatedDocumentBuilderList() {
return getAssociatedDocumentFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.AssociatedDocument, org.lumongo.cluster.message.Lumongo.AssociatedDocument.Builder, org.lumongo.cluster.message.Lumongo.AssociatedDocumentOrBuilder>
getAssociatedDocumentFieldBuilder() {
if (associatedDocumentBuilder_ == null) {
associatedDocumentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.AssociatedDocument, org.lumongo.cluster.message.Lumongo.AssociatedDocument.Builder, org.lumongo.cluster.message.Lumongo.AssociatedDocumentOrBuilder>(
associatedDocument_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
associatedDocument_ = null;
}
return associatedDocumentBuilder_;
}
private boolean clearExistingAssociated_ ;
/**
* optional bool clearExistingAssociated = 5 [default = false];
*/
public boolean hasClearExistingAssociated() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bool clearExistingAssociated = 5 [default = false];
*/
public boolean getClearExistingAssociated() {
return clearExistingAssociated_;
}
/**
* optional bool clearExistingAssociated = 5 [default = false];
*/
public Builder setClearExistingAssociated(boolean value) {
bitField0_ |= 0x00000010;
clearExistingAssociated_ = value;
onChanged();
return this;
}
/**
* optional bool clearExistingAssociated = 5 [default = false];
*/
public Builder clearClearExistingAssociated() {
bitField0_ = (bitField0_ & ~0x00000010);
clearExistingAssociated_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:StoreRequest)
}
static {
defaultInstance = new StoreRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:StoreRequest)
}
public interface StoreResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:StoreResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code StoreResponse}
*/
public static final class StoreResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:StoreResponse)
StoreResponseOrBuilder {
// Use StoreResponse.newBuilder() to construct.
private StoreResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StoreResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StoreResponse defaultInstance;
public static StoreResponse getDefaultInstance() {
return defaultInstance;
}
public StoreResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StoreResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.StoreResponse.class, org.lumongo.cluster.message.Lumongo.StoreResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StoreResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StoreResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.StoreResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.StoreResponse 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;
}
/**
* Protobuf type {@code StoreResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:StoreResponse)
org.lumongo.cluster.message.Lumongo.StoreResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.StoreResponse.class, org.lumongo.cluster.message.Lumongo.StoreResponse.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.StoreResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_StoreResponse_descriptor;
}
public org.lumongo.cluster.message.Lumongo.StoreResponse getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.StoreResponse.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.StoreResponse build() {
org.lumongo.cluster.message.Lumongo.StoreResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.StoreResponse buildPartial() {
org.lumongo.cluster.message.Lumongo.StoreResponse result = new org.lumongo.cluster.message.Lumongo.StoreResponse(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.StoreResponse) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.StoreResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.StoreResponse other) {
if (other == org.lumongo.cluster.message.Lumongo.StoreResponse.getDefaultInstance()) return this;
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 {
org.lumongo.cluster.message.Lumongo.StoreResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.StoreResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:StoreResponse)
}
static {
defaultInstance = new StoreResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:StoreResponse)
}
public interface LMDocOrBuilder extends
// @@protoc_insertion_point(interface_extends:LMDoc)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .LMField indexedField = 1;
*/
java.util.List
getIndexedFieldList();
/**
* repeated .LMField indexedField = 1;
*/
org.lumongo.cluster.message.Lumongo.LMField getIndexedField(int index);
/**
* repeated .LMField indexedField = 1;
*/
int getIndexedFieldCount();
/**
* repeated .LMField indexedField = 1;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.LMFieldOrBuilder>
getIndexedFieldOrBuilderList();
/**
* repeated .LMField indexedField = 1;
*/
org.lumongo.cluster.message.Lumongo.LMFieldOrBuilder getIndexedFieldOrBuilder(
int index);
/**
* repeated .LMFacet facet = 2;
*/
java.util.List
getFacetList();
/**
* repeated .LMFacet facet = 2;
*/
org.lumongo.cluster.message.Lumongo.LMFacet getFacet(int index);
/**
* repeated .LMFacet facet = 2;
*/
int getFacetCount();
/**
* repeated .LMFacet facet = 2;
*/
java.util.List extends org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder>
getFacetOrBuilderList();
/**
* repeated .LMFacet facet = 2;
*/
org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder getFacetOrBuilder(
int index);
/**
* optional int64 timestamp = 3;
*/
boolean hasTimestamp();
/**
* optional int64 timestamp = 3;
*/
long getTimestamp();
}
/**
* Protobuf type {@code LMDoc}
*/
public static final class LMDoc extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:LMDoc)
LMDocOrBuilder {
// Use LMDoc.newBuilder() to construct.
private LMDoc(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LMDoc(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LMDoc defaultInstance;
public static LMDoc getDefaultInstance() {
return defaultInstance;
}
public LMDoc getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LMDoc(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
indexedField_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
indexedField_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.LMField.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
facet_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
facet_.add(input.readMessage(org.lumongo.cluster.message.Lumongo.LMFacet.PARSER, extensionRegistry));
break;
}
case 24: {
bitField0_ |= 0x00000001;
timestamp_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
indexedField_ = java.util.Collections.unmodifiableList(indexedField_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
facet_ = java.util.Collections.unmodifiableList(facet_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMDoc_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMDoc_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.LMDoc.class, org.lumongo.cluster.message.Lumongo.LMDoc.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public LMDoc parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LMDoc(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INDEXEDFIELD_FIELD_NUMBER = 1;
private java.util.List indexedField_;
/**
* repeated .LMField indexedField = 1;
*/
public java.util.List getIndexedFieldList() {
return indexedField_;
}
/**
* repeated .LMField indexedField = 1;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.LMFieldOrBuilder>
getIndexedFieldOrBuilderList() {
return indexedField_;
}
/**
* repeated .LMField indexedField = 1;
*/
public int getIndexedFieldCount() {
return indexedField_.size();
}
/**
* repeated .LMField indexedField = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMField getIndexedField(int index) {
return indexedField_.get(index);
}
/**
* repeated .LMField indexedField = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMFieldOrBuilder getIndexedFieldOrBuilder(
int index) {
return indexedField_.get(index);
}
public static final int FACET_FIELD_NUMBER = 2;
private java.util.List facet_;
/**
* repeated .LMFacet facet = 2;
*/
public java.util.List getFacetList() {
return facet_;
}
/**
* repeated .LMFacet facet = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder>
getFacetOrBuilderList() {
return facet_;
}
/**
* repeated .LMFacet facet = 2;
*/
public int getFacetCount() {
return facet_.size();
}
/**
* repeated .LMFacet facet = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMFacet getFacet(int index) {
return facet_.get(index);
}
/**
* repeated .LMFacet facet = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder getFacetOrBuilder(
int index) {
return facet_.get(index);
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_;
/**
* optional int64 timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 timestamp = 3;
*/
public long getTimestamp() {
return timestamp_;
}
private void initFields() {
indexedField_ = java.util.Collections.emptyList();
facet_ = java.util.Collections.emptyList();
timestamp_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getIndexedFieldCount(); i++) {
if (!getIndexedField(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getFacetCount(); i++) {
if (!getFacet(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < indexedField_.size(); i++) {
output.writeMessage(1, indexedField_.get(i));
}
for (int i = 0; i < facet_.size(); i++) {
output.writeMessage(2, facet_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(3, timestamp_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < indexedField_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, indexedField_.get(i));
}
for (int i = 0; i < facet_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, facet_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, timestamp_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.LMDoc parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.LMDoc 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;
}
/**
* Protobuf type {@code LMDoc}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:LMDoc)
org.lumongo.cluster.message.Lumongo.LMDocOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMDoc_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMDoc_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.LMDoc.class, org.lumongo.cluster.message.Lumongo.LMDoc.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.LMDoc.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIndexedFieldFieldBuilder();
getFacetFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (indexedFieldBuilder_ == null) {
indexedField_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
indexedFieldBuilder_.clear();
}
if (facetBuilder_ == null) {
facet_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
facetBuilder_.clear();
}
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMDoc_descriptor;
}
public org.lumongo.cluster.message.Lumongo.LMDoc getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.LMDoc.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.LMDoc build() {
org.lumongo.cluster.message.Lumongo.LMDoc result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.LMDoc buildPartial() {
org.lumongo.cluster.message.Lumongo.LMDoc result = new org.lumongo.cluster.message.Lumongo.LMDoc(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (indexedFieldBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
indexedField_ = java.util.Collections.unmodifiableList(indexedField_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.indexedField_ = indexedField_;
} else {
result.indexedField_ = indexedFieldBuilder_.build();
}
if (facetBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
facet_ = java.util.Collections.unmodifiableList(facet_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.facet_ = facet_;
} else {
result.facet_ = facetBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000001;
}
result.timestamp_ = timestamp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.LMDoc) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.LMDoc)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.LMDoc other) {
if (other == org.lumongo.cluster.message.Lumongo.LMDoc.getDefaultInstance()) return this;
if (indexedFieldBuilder_ == null) {
if (!other.indexedField_.isEmpty()) {
if (indexedField_.isEmpty()) {
indexedField_ = other.indexedField_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIndexedFieldIsMutable();
indexedField_.addAll(other.indexedField_);
}
onChanged();
}
} else {
if (!other.indexedField_.isEmpty()) {
if (indexedFieldBuilder_.isEmpty()) {
indexedFieldBuilder_.dispose();
indexedFieldBuilder_ = null;
indexedField_ = other.indexedField_;
bitField0_ = (bitField0_ & ~0x00000001);
indexedFieldBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getIndexedFieldFieldBuilder() : null;
} else {
indexedFieldBuilder_.addAllMessages(other.indexedField_);
}
}
}
if (facetBuilder_ == null) {
if (!other.facet_.isEmpty()) {
if (facet_.isEmpty()) {
facet_ = other.facet_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFacetIsMutable();
facet_.addAll(other.facet_);
}
onChanged();
}
} else {
if (!other.facet_.isEmpty()) {
if (facetBuilder_.isEmpty()) {
facetBuilder_.dispose();
facetBuilder_ = null;
facet_ = other.facet_;
bitField0_ = (bitField0_ & ~0x00000002);
facetBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getFacetFieldBuilder() : null;
} else {
facetBuilder_.addAllMessages(other.facet_);
}
}
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getIndexedFieldCount(); i++) {
if (!getIndexedField(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getFacetCount(); i++) {
if (!getFacet(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.LMDoc parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.LMDoc) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List indexedField_ =
java.util.Collections.emptyList();
private void ensureIndexedFieldIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
indexedField_ = new java.util.ArrayList(indexedField_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMField, org.lumongo.cluster.message.Lumongo.LMField.Builder, org.lumongo.cluster.message.Lumongo.LMFieldOrBuilder> indexedFieldBuilder_;
/**
* repeated .LMField indexedField = 1;
*/
public java.util.List getIndexedFieldList() {
if (indexedFieldBuilder_ == null) {
return java.util.Collections.unmodifiableList(indexedField_);
} else {
return indexedFieldBuilder_.getMessageList();
}
}
/**
* repeated .LMField indexedField = 1;
*/
public int getIndexedFieldCount() {
if (indexedFieldBuilder_ == null) {
return indexedField_.size();
} else {
return indexedFieldBuilder_.getCount();
}
}
/**
* repeated .LMField indexedField = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMField getIndexedField(int index) {
if (indexedFieldBuilder_ == null) {
return indexedField_.get(index);
} else {
return indexedFieldBuilder_.getMessage(index);
}
}
/**
* repeated .LMField indexedField = 1;
*/
public Builder setIndexedField(
int index, org.lumongo.cluster.message.Lumongo.LMField value) {
if (indexedFieldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexedFieldIsMutable();
indexedField_.set(index, value);
onChanged();
} else {
indexedFieldBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .LMField indexedField = 1;
*/
public Builder setIndexedField(
int index, org.lumongo.cluster.message.Lumongo.LMField.Builder builderForValue) {
if (indexedFieldBuilder_ == null) {
ensureIndexedFieldIsMutable();
indexedField_.set(index, builderForValue.build());
onChanged();
} else {
indexedFieldBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .LMField indexedField = 1;
*/
public Builder addIndexedField(org.lumongo.cluster.message.Lumongo.LMField value) {
if (indexedFieldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexedFieldIsMutable();
indexedField_.add(value);
onChanged();
} else {
indexedFieldBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .LMField indexedField = 1;
*/
public Builder addIndexedField(
int index, org.lumongo.cluster.message.Lumongo.LMField value) {
if (indexedFieldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexedFieldIsMutable();
indexedField_.add(index, value);
onChanged();
} else {
indexedFieldBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .LMField indexedField = 1;
*/
public Builder addIndexedField(
org.lumongo.cluster.message.Lumongo.LMField.Builder builderForValue) {
if (indexedFieldBuilder_ == null) {
ensureIndexedFieldIsMutable();
indexedField_.add(builderForValue.build());
onChanged();
} else {
indexedFieldBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .LMField indexedField = 1;
*/
public Builder addIndexedField(
int index, org.lumongo.cluster.message.Lumongo.LMField.Builder builderForValue) {
if (indexedFieldBuilder_ == null) {
ensureIndexedFieldIsMutable();
indexedField_.add(index, builderForValue.build());
onChanged();
} else {
indexedFieldBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .LMField indexedField = 1;
*/
public Builder addAllIndexedField(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.LMField> values) {
if (indexedFieldBuilder_ == null) {
ensureIndexedFieldIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indexedField_);
onChanged();
} else {
indexedFieldBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .LMField indexedField = 1;
*/
public Builder clearIndexedField() {
if (indexedFieldBuilder_ == null) {
indexedField_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
indexedFieldBuilder_.clear();
}
return this;
}
/**
* repeated .LMField indexedField = 1;
*/
public Builder removeIndexedField(int index) {
if (indexedFieldBuilder_ == null) {
ensureIndexedFieldIsMutable();
indexedField_.remove(index);
onChanged();
} else {
indexedFieldBuilder_.remove(index);
}
return this;
}
/**
* repeated .LMField indexedField = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMField.Builder getIndexedFieldBuilder(
int index) {
return getIndexedFieldFieldBuilder().getBuilder(index);
}
/**
* repeated .LMField indexedField = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMFieldOrBuilder getIndexedFieldOrBuilder(
int index) {
if (indexedFieldBuilder_ == null) {
return indexedField_.get(index); } else {
return indexedFieldBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .LMField indexedField = 1;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.LMFieldOrBuilder>
getIndexedFieldOrBuilderList() {
if (indexedFieldBuilder_ != null) {
return indexedFieldBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(indexedField_);
}
}
/**
* repeated .LMField indexedField = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMField.Builder addIndexedFieldBuilder() {
return getIndexedFieldFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.LMField.getDefaultInstance());
}
/**
* repeated .LMField indexedField = 1;
*/
public org.lumongo.cluster.message.Lumongo.LMField.Builder addIndexedFieldBuilder(
int index) {
return getIndexedFieldFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.LMField.getDefaultInstance());
}
/**
* repeated .LMField indexedField = 1;
*/
public java.util.List
getIndexedFieldBuilderList() {
return getIndexedFieldFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMField, org.lumongo.cluster.message.Lumongo.LMField.Builder, org.lumongo.cluster.message.Lumongo.LMFieldOrBuilder>
getIndexedFieldFieldBuilder() {
if (indexedFieldBuilder_ == null) {
indexedFieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMField, org.lumongo.cluster.message.Lumongo.LMField.Builder, org.lumongo.cluster.message.Lumongo.LMFieldOrBuilder>(
indexedField_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
indexedField_ = null;
}
return indexedFieldBuilder_;
}
private java.util.List facet_ =
java.util.Collections.emptyList();
private void ensureFacetIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
facet_ = new java.util.ArrayList(facet_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMFacet, org.lumongo.cluster.message.Lumongo.LMFacet.Builder, org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder> facetBuilder_;
/**
* repeated .LMFacet facet = 2;
*/
public java.util.List getFacetList() {
if (facetBuilder_ == null) {
return java.util.Collections.unmodifiableList(facet_);
} else {
return facetBuilder_.getMessageList();
}
}
/**
* repeated .LMFacet facet = 2;
*/
public int getFacetCount() {
if (facetBuilder_ == null) {
return facet_.size();
} else {
return facetBuilder_.getCount();
}
}
/**
* repeated .LMFacet facet = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMFacet getFacet(int index) {
if (facetBuilder_ == null) {
return facet_.get(index);
} else {
return facetBuilder_.getMessage(index);
}
}
/**
* repeated .LMFacet facet = 2;
*/
public Builder setFacet(
int index, org.lumongo.cluster.message.Lumongo.LMFacet value) {
if (facetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFacetIsMutable();
facet_.set(index, value);
onChanged();
} else {
facetBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .LMFacet facet = 2;
*/
public Builder setFacet(
int index, org.lumongo.cluster.message.Lumongo.LMFacet.Builder builderForValue) {
if (facetBuilder_ == null) {
ensureFacetIsMutable();
facet_.set(index, builderForValue.build());
onChanged();
} else {
facetBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .LMFacet facet = 2;
*/
public Builder addFacet(org.lumongo.cluster.message.Lumongo.LMFacet value) {
if (facetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFacetIsMutable();
facet_.add(value);
onChanged();
} else {
facetBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .LMFacet facet = 2;
*/
public Builder addFacet(
int index, org.lumongo.cluster.message.Lumongo.LMFacet value) {
if (facetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFacetIsMutable();
facet_.add(index, value);
onChanged();
} else {
facetBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .LMFacet facet = 2;
*/
public Builder addFacet(
org.lumongo.cluster.message.Lumongo.LMFacet.Builder builderForValue) {
if (facetBuilder_ == null) {
ensureFacetIsMutable();
facet_.add(builderForValue.build());
onChanged();
} else {
facetBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .LMFacet facet = 2;
*/
public Builder addFacet(
int index, org.lumongo.cluster.message.Lumongo.LMFacet.Builder builderForValue) {
if (facetBuilder_ == null) {
ensureFacetIsMutable();
facet_.add(index, builderForValue.build());
onChanged();
} else {
facetBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .LMFacet facet = 2;
*/
public Builder addAllFacet(
java.lang.Iterable extends org.lumongo.cluster.message.Lumongo.LMFacet> values) {
if (facetBuilder_ == null) {
ensureFacetIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, facet_);
onChanged();
} else {
facetBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .LMFacet facet = 2;
*/
public Builder clearFacet() {
if (facetBuilder_ == null) {
facet_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
facetBuilder_.clear();
}
return this;
}
/**
* repeated .LMFacet facet = 2;
*/
public Builder removeFacet(int index) {
if (facetBuilder_ == null) {
ensureFacetIsMutable();
facet_.remove(index);
onChanged();
} else {
facetBuilder_.remove(index);
}
return this;
}
/**
* repeated .LMFacet facet = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMFacet.Builder getFacetBuilder(
int index) {
return getFacetFieldBuilder().getBuilder(index);
}
/**
* repeated .LMFacet facet = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder getFacetOrBuilder(
int index) {
if (facetBuilder_ == null) {
return facet_.get(index); } else {
return facetBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .LMFacet facet = 2;
*/
public java.util.List extends org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder>
getFacetOrBuilderList() {
if (facetBuilder_ != null) {
return facetBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(facet_);
}
}
/**
* repeated .LMFacet facet = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMFacet.Builder addFacetBuilder() {
return getFacetFieldBuilder().addBuilder(
org.lumongo.cluster.message.Lumongo.LMFacet.getDefaultInstance());
}
/**
* repeated .LMFacet facet = 2;
*/
public org.lumongo.cluster.message.Lumongo.LMFacet.Builder addFacetBuilder(
int index) {
return getFacetFieldBuilder().addBuilder(
index, org.lumongo.cluster.message.Lumongo.LMFacet.getDefaultInstance());
}
/**
* repeated .LMFacet facet = 2;
*/
public java.util.List
getFacetBuilderList() {
return getFacetFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMFacet, org.lumongo.cluster.message.Lumongo.LMFacet.Builder, org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder>
getFacetFieldBuilder() {
if (facetBuilder_ == null) {
facetBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.lumongo.cluster.message.Lumongo.LMFacet, org.lumongo.cluster.message.Lumongo.LMFacet.Builder, org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder>(
facet_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
facet_ = null;
}
return facetBuilder_;
}
private long timestamp_ ;
/**
* optional int64 timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 timestamp = 3;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* optional int64 timestamp = 3;
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000004;
timestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 timestamp = 3;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:LMDoc)
}
static {
defaultInstance = new LMDoc(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:LMDoc)
}
public interface LMFacetOrBuilder extends
// @@protoc_insertion_point(interface_extends:LMFacet)
com.google.protobuf.MessageOrBuilder {
/**
* required string label = 1;
*/
boolean hasLabel();
/**
* required string label = 1;
*/
java.lang.String getLabel();
/**
* required string label = 1;
*/
com.google.protobuf.ByteString
getLabelBytes();
/**
* optional string path = 2;
*/
boolean hasPath();
/**
* optional string path = 2;
*/
java.lang.String getPath();
/**
* optional string path = 2;
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
* Protobuf type {@code LMFacet}
*/
public static final class LMFacet extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:LMFacet)
LMFacetOrBuilder {
// Use LMFacet.newBuilder() to construct.
private LMFacet(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LMFacet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LMFacet defaultInstance;
public static LMFacet getDefaultInstance() {
return defaultInstance;
}
public LMFacet getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LMFacet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
label_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
path_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMFacet_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMFacet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.LMFacet.class, org.lumongo.cluster.message.Lumongo.LMFacet.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public LMFacet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LMFacet(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int LABEL_FIELD_NUMBER = 1;
private java.lang.Object label_;
/**
* required string label = 1;
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string label = 1;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
label_ = s;
}
return s;
}
}
/**
* required string label = 1;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 2;
private java.lang.Object path_;
/**
* optional string path = 2;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string path = 2;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
}
}
/**
* optional string path = 2;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
label_ = "";
path_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasLabel()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getLabelBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getPathBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getLabelBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getPathBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.lumongo.cluster.message.Lumongo.LMFacet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.lumongo.cluster.message.Lumongo.LMFacet 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;
}
/**
* Protobuf type {@code LMFacet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:LMFacet)
org.lumongo.cluster.message.Lumongo.LMFacetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMFacet_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMFacet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.LMFacet.class, org.lumongo.cluster.message.Lumongo.LMFacet.Builder.class);
}
// Construct using org.lumongo.cluster.message.Lumongo.LMFacet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
label_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
path_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMFacet_descriptor;
}
public org.lumongo.cluster.message.Lumongo.LMFacet getDefaultInstanceForType() {
return org.lumongo.cluster.message.Lumongo.LMFacet.getDefaultInstance();
}
public org.lumongo.cluster.message.Lumongo.LMFacet build() {
org.lumongo.cluster.message.Lumongo.LMFacet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.lumongo.cluster.message.Lumongo.LMFacet buildPartial() {
org.lumongo.cluster.message.Lumongo.LMFacet result = new org.lumongo.cluster.message.Lumongo.LMFacet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.label_ = label_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.path_ = path_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.lumongo.cluster.message.Lumongo.LMFacet) {
return mergeFrom((org.lumongo.cluster.message.Lumongo.LMFacet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.lumongo.cluster.message.Lumongo.LMFacet other) {
if (other == org.lumongo.cluster.message.Lumongo.LMFacet.getDefaultInstance()) return this;
if (other.hasLabel()) {
bitField0_ |= 0x00000001;
label_ = other.label_;
onChanged();
}
if (other.hasPath()) {
bitField0_ |= 0x00000002;
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasLabel()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.lumongo.cluster.message.Lumongo.LMFacet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.lumongo.cluster.message.Lumongo.LMFacet) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object label_ = "";
/**
* required string label = 1;
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string label = 1;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
label_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string label = 1;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string label = 1;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
label_ = value;
onChanged();
return this;
}
/**
* required string label = 1;
*/
public Builder clearLabel() {
bitField0_ = (bitField0_ & ~0x00000001);
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* required string label = 1;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
label_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
* optional string path = 2;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string path = 2;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string path = 2;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string path = 2;
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
path_ = value;
onChanged();
return this;
}
/**
* optional string path = 2;
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000002);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* optional string path = 2;
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
path_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:LMFacet)
}
static {
defaultInstance = new LMFacet(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:LMFacet)
}
public interface LMFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:LMField)
com.google.protobuf.MessageOrBuilder {
/**
* required string fieldName = 1;
*/
boolean hasFieldName();
/**
* required string fieldName = 1;
*/
java.lang.String getFieldName();
/**
* required string fieldName = 1;
*/
com.google.protobuf.ByteString
getFieldNameBytes();
/**
* repeated string fieldValue = 2;
*/
com.google.protobuf.ProtocolStringList
getFieldValueList();
/**
* repeated string fieldValue = 2;
*/
int getFieldValueCount();
/**
* repeated string fieldValue = 2;
*/
java.lang.String getFieldValue(int index);
/**
* repeated string fieldValue = 2;
*/
com.google.protobuf.ByteString
getFieldValueBytes(int index);
/**
* repeated int32 intValue = 3;
*/
java.util.List getIntValueList();
/**
* repeated int32 intValue = 3;
*/
int getIntValueCount();
/**
* repeated int32 intValue = 3;
*/
int getIntValue(int index);
/**
* repeated int64 longValue = 4;
*/
java.util.List getLongValueList();
/**
* repeated int64 longValue = 4;
*/
int getLongValueCount();
/**
* repeated int64 longValue = 4;
*/
long getLongValue(int index);
/**
* repeated float floatValue = 5;
*/
java.util.List getFloatValueList();
/**
* repeated float floatValue = 5;
*/
int getFloatValueCount();
/**
* repeated float floatValue = 5;
*/
float getFloatValue(int index);
/**
* repeated double doubleValue = 6;
*/
java.util.List getDoubleValueList();
/**
* repeated double doubleValue = 6;
*/
int getDoubleValueCount();
/**
* repeated double doubleValue = 6;
*/
double getDoubleValue(int index);
}
/**
* Protobuf type {@code LMField}
*/
public static final class LMField extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:LMField)
LMFieldOrBuilder {
// Use LMField.newBuilder() to construct.
private LMField(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LMField(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LMField defaultInstance;
public static LMField getDefaultInstance() {
return defaultInstance;
}
public LMField getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LMField(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
fieldName_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
fieldValue_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
fieldValue_.add(bs);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
intValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
intValue_.add(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
intValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
intValue_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
longValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
longValue_.add(input.readInt64());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
longValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
longValue_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 45: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
floatValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
floatValue_.add(input.readFloat());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
floatValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
floatValue_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
case 49: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
doubleValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
doubleValue_.add(input.readDouble());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
doubleValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
doubleValue_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
fieldValue_ = fieldValue_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
intValue_ = java.util.Collections.unmodifiableList(intValue_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
longValue_ = java.util.Collections.unmodifiableList(longValue_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
floatValue_ = java.util.Collections.unmodifiableList(floatValue_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
doubleValue_ = java.util.Collections.unmodifiableList(doubleValue_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMField_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.lumongo.cluster.message.Lumongo.internal_static_LMField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.lumongo.cluster.message.Lumongo.LMField.class, org.lumongo.cluster.message.Lumongo.LMField.Builder.class);
}
public static com.google.protobuf.Parser