com.yelp.nrtsearch.server.grpc.CopyState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clientlib Show documentation
Show all versions of clientlib Show documentation
GRPC Clientlib for nrtSearch
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yelp/nrtsearch/luceneserver.proto
// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;
/**
*
* Holds incRef'd file level details for one point-in-time segment infos on the primary node.
*
*
* Protobuf type {@code luceneserver.CopyState}
*/
public final class CopyState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.CopyState)
CopyStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use CopyState.newBuilder() to construct.
private CopyState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CopyState() {
infoBytes_ = com.google.protobuf.ByteString.EMPTY;
completedMergeFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CopyState();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CopyState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CopyState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.CopyState.class, com.yelp.nrtsearch.server.grpc.CopyState.Builder.class);
}
private int bitField0_;
public static final int INFOBYTESLENGTH_FIELD_NUMBER = 1;
private int infoBytesLength_ = 0;
/**
*
* infoBytes len
*
*
* int32 infoBytesLength = 1;
* @return The infoBytesLength.
*/
@java.lang.Override
public int getInfoBytesLength() {
return infoBytesLength_;
}
public static final int INFOBYTES_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString infoBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*infoBytes
*
*
* bytes infoBytes = 2;
* @return The infoBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getInfoBytes() {
return infoBytes_;
}
public static final int GEN_FIELD_NUMBER = 3;
private long gen_ = 0L;
/**
*
*gen
*
*
* int64 gen = 3;
* @return The gen.
*/
@java.lang.Override
public long getGen() {
return gen_;
}
public static final int VERSION_FIELD_NUMBER = 4;
private long version_ = 0L;
/**
*
*versiom
*
*
* int64 version = 4;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
public static final int FILESMETADATA_FIELD_NUMBER = 5;
private com.yelp.nrtsearch.server.grpc.FilesMetadata filesMetadata_;
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
* @return Whether the filesMetadata field is set.
*/
@java.lang.Override
public boolean hasFilesMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
* @return The filesMetadata.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FilesMetadata getFilesMetadata() {
return filesMetadata_ == null ? com.yelp.nrtsearch.server.grpc.FilesMetadata.getDefaultInstance() : filesMetadata_;
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FilesMetadataOrBuilder getFilesMetadataOrBuilder() {
return filesMetadata_ == null ? com.yelp.nrtsearch.server.grpc.FilesMetadata.getDefaultInstance() : filesMetadata_;
}
public static final int COMPLETEDMERGEFILESSIZE_FIELD_NUMBER = 6;
private int completedMergeFilesSize_ = 0;
/**
*
*completed merged files
*
*
* int32 completedMergeFilesSize = 6;
* @return The completedMergeFilesSize.
*/
@java.lang.Override
public int getCompletedMergeFilesSize() {
return completedMergeFilesSize_;
}
public static final int COMPLETEDMERGEFILES_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList completedMergeFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @return A list containing the completedMergeFiles.
*/
public com.google.protobuf.ProtocolStringList
getCompletedMergeFilesList() {
return completedMergeFiles_;
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @return The count of completedMergeFiles.
*/
public int getCompletedMergeFilesCount() {
return completedMergeFiles_.size();
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @param index The index of the element to return.
* @return The completedMergeFiles at the given index.
*/
public java.lang.String getCompletedMergeFiles(int index) {
return completedMergeFiles_.get(index);
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @param index The index of the value to return.
* @return The bytes of the completedMergeFiles at the given index.
*/
public com.google.protobuf.ByteString
getCompletedMergeFilesBytes(int index) {
return completedMergeFiles_.getByteString(index);
}
public static final int PRIMARYGEN_FIELD_NUMBER = 8;
private long primaryGen_ = 0L;
/**
*
*primary Gen
*
*
* int64 primaryGen = 8;
* @return The primaryGen.
*/
@java.lang.Override
public long getPrimaryGen() {
return primaryGen_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (infoBytesLength_ != 0) {
output.writeInt32(1, infoBytesLength_);
}
if (!infoBytes_.isEmpty()) {
output.writeBytes(2, infoBytes_);
}
if (gen_ != 0L) {
output.writeInt64(3, gen_);
}
if (version_ != 0L) {
output.writeInt64(4, version_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getFilesMetadata());
}
if (completedMergeFilesSize_ != 0) {
output.writeInt32(6, completedMergeFilesSize_);
}
for (int i = 0; i < completedMergeFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, completedMergeFiles_.getRaw(i));
}
if (primaryGen_ != 0L) {
output.writeInt64(8, primaryGen_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (infoBytesLength_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, infoBytesLength_);
}
if (!infoBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, infoBytes_);
}
if (gen_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, gen_);
}
if (version_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, version_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getFilesMetadata());
}
if (completedMergeFilesSize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, completedMergeFilesSize_);
}
{
int dataSize = 0;
for (int i = 0; i < completedMergeFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(completedMergeFiles_.getRaw(i));
}
size += dataSize;
size += 1 * getCompletedMergeFilesList().size();
}
if (primaryGen_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, primaryGen_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yelp.nrtsearch.server.grpc.CopyState)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.CopyState other = (com.yelp.nrtsearch.server.grpc.CopyState) obj;
if (getInfoBytesLength()
!= other.getInfoBytesLength()) return false;
if (!getInfoBytes()
.equals(other.getInfoBytes())) return false;
if (getGen()
!= other.getGen()) return false;
if (getVersion()
!= other.getVersion()) return false;
if (hasFilesMetadata() != other.hasFilesMetadata()) return false;
if (hasFilesMetadata()) {
if (!getFilesMetadata()
.equals(other.getFilesMetadata())) return false;
}
if (getCompletedMergeFilesSize()
!= other.getCompletedMergeFilesSize()) return false;
if (!getCompletedMergeFilesList()
.equals(other.getCompletedMergeFilesList())) return false;
if (getPrimaryGen()
!= other.getPrimaryGen()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + INFOBYTESLENGTH_FIELD_NUMBER;
hash = (53 * hash) + getInfoBytesLength();
hash = (37 * hash) + INFOBYTES_FIELD_NUMBER;
hash = (53 * hash) + getInfoBytes().hashCode();
hash = (37 * hash) + GEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGen());
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVersion());
if (hasFilesMetadata()) {
hash = (37 * hash) + FILESMETADATA_FIELD_NUMBER;
hash = (53 * hash) + getFilesMetadata().hashCode();
}
hash = (37 * hash) + COMPLETEDMERGEFILESSIZE_FIELD_NUMBER;
hash = (53 * hash) + getCompletedMergeFilesSize();
if (getCompletedMergeFilesCount() > 0) {
hash = (37 * hash) + COMPLETEDMERGEFILES_FIELD_NUMBER;
hash = (53 * hash) + getCompletedMergeFilesList().hashCode();
}
hash = (37 * hash) + PRIMARYGEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPrimaryGen());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.CopyState parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yelp.nrtsearch.server.grpc.CopyState prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Holds incRef'd file level details for one point-in-time segment infos on the primary node.
*
*
* Protobuf type {@code luceneserver.CopyState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.CopyState)
com.yelp.nrtsearch.server.grpc.CopyStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CopyState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CopyState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.CopyState.class, com.yelp.nrtsearch.server.grpc.CopyState.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.CopyState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFilesMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
infoBytesLength_ = 0;
infoBytes_ = com.google.protobuf.ByteString.EMPTY;
gen_ = 0L;
version_ = 0L;
filesMetadata_ = null;
if (filesMetadataBuilder_ != null) {
filesMetadataBuilder_.dispose();
filesMetadataBuilder_ = null;
}
completedMergeFilesSize_ = 0;
completedMergeFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
primaryGen_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CopyState_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CopyState getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.CopyState.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CopyState build() {
com.yelp.nrtsearch.server.grpc.CopyState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CopyState buildPartial() {
com.yelp.nrtsearch.server.grpc.CopyState result = new com.yelp.nrtsearch.server.grpc.CopyState(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.CopyState result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.infoBytesLength_ = infoBytesLength_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.infoBytes_ = infoBytes_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.gen_ = gen_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.version_ = version_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.filesMetadata_ = filesMetadataBuilder_ == null
? filesMetadata_
: filesMetadataBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.completedMergeFilesSize_ = completedMergeFilesSize_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
completedMergeFiles_.makeImmutable();
result.completedMergeFiles_ = completedMergeFiles_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.primaryGen_ = primaryGen_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yelp.nrtsearch.server.grpc.CopyState) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.CopyState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.CopyState other) {
if (other == com.yelp.nrtsearch.server.grpc.CopyState.getDefaultInstance()) return this;
if (other.getInfoBytesLength() != 0) {
setInfoBytesLength(other.getInfoBytesLength());
}
if (other.getInfoBytes() != com.google.protobuf.ByteString.EMPTY) {
setInfoBytes(other.getInfoBytes());
}
if (other.getGen() != 0L) {
setGen(other.getGen());
}
if (other.getVersion() != 0L) {
setVersion(other.getVersion());
}
if (other.hasFilesMetadata()) {
mergeFilesMetadata(other.getFilesMetadata());
}
if (other.getCompletedMergeFilesSize() != 0) {
setCompletedMergeFilesSize(other.getCompletedMergeFilesSize());
}
if (!other.completedMergeFiles_.isEmpty()) {
if (completedMergeFiles_.isEmpty()) {
completedMergeFiles_ = other.completedMergeFiles_;
bitField0_ |= 0x00000040;
} else {
ensureCompletedMergeFilesIsMutable();
completedMergeFiles_.addAll(other.completedMergeFiles_);
}
onChanged();
}
if (other.getPrimaryGen() != 0L) {
setPrimaryGen(other.getPrimaryGen());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
infoBytesLength_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
infoBytes_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
gen_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
version_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getFilesMetadataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
completedMergeFilesSize_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
java.lang.String s = input.readStringRequireUtf8();
ensureCompletedMergeFilesIsMutable();
completedMergeFiles_.add(s);
break;
} // case 58
case 64: {
primaryGen_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 64
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int infoBytesLength_ ;
/**
*
* infoBytes len
*
*
* int32 infoBytesLength = 1;
* @return The infoBytesLength.
*/
@java.lang.Override
public int getInfoBytesLength() {
return infoBytesLength_;
}
/**
*
* infoBytes len
*
*
* int32 infoBytesLength = 1;
* @param value The infoBytesLength to set.
* @return This builder for chaining.
*/
public Builder setInfoBytesLength(int value) {
infoBytesLength_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* infoBytes len
*
*
* int32 infoBytesLength = 1;
* @return This builder for chaining.
*/
public Builder clearInfoBytesLength() {
bitField0_ = (bitField0_ & ~0x00000001);
infoBytesLength_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString infoBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*infoBytes
*
*
* bytes infoBytes = 2;
* @return The infoBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getInfoBytes() {
return infoBytes_;
}
/**
*
*infoBytes
*
*
* bytes infoBytes = 2;
* @param value The infoBytes to set.
* @return This builder for chaining.
*/
public Builder setInfoBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
infoBytes_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*infoBytes
*
*
* bytes infoBytes = 2;
* @return This builder for chaining.
*/
public Builder clearInfoBytes() {
bitField0_ = (bitField0_ & ~0x00000002);
infoBytes_ = getDefaultInstance().getInfoBytes();
onChanged();
return this;
}
private long gen_ ;
/**
*
*gen
*
*
* int64 gen = 3;
* @return The gen.
*/
@java.lang.Override
public long getGen() {
return gen_;
}
/**
*
*gen
*
*
* int64 gen = 3;
* @param value The gen to set.
* @return This builder for chaining.
*/
public Builder setGen(long value) {
gen_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*gen
*
*
* int64 gen = 3;
* @return This builder for chaining.
*/
public Builder clearGen() {
bitField0_ = (bitField0_ & ~0x00000004);
gen_ = 0L;
onChanged();
return this;
}
private long version_ ;
/**
*
*versiom
*
*
* int64 version = 4;
* @return The version.
*/
@java.lang.Override
public long getVersion() {
return version_;
}
/**
*
*versiom
*
*
* int64 version = 4;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(long value) {
version_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*versiom
*
*
* int64 version = 4;
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000008);
version_ = 0L;
onChanged();
return this;
}
private com.yelp.nrtsearch.server.grpc.FilesMetadata filesMetadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FilesMetadata, com.yelp.nrtsearch.server.grpc.FilesMetadata.Builder, com.yelp.nrtsearch.server.grpc.FilesMetadataOrBuilder> filesMetadataBuilder_;
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
* @return Whether the filesMetadata field is set.
*/
public boolean hasFilesMetadata() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
* @return The filesMetadata.
*/
public com.yelp.nrtsearch.server.grpc.FilesMetadata getFilesMetadata() {
if (filesMetadataBuilder_ == null) {
return filesMetadata_ == null ? com.yelp.nrtsearch.server.grpc.FilesMetadata.getDefaultInstance() : filesMetadata_;
} else {
return filesMetadataBuilder_.getMessage();
}
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
*/
public Builder setFilesMetadata(com.yelp.nrtsearch.server.grpc.FilesMetadata value) {
if (filesMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filesMetadata_ = value;
} else {
filesMetadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
*/
public Builder setFilesMetadata(
com.yelp.nrtsearch.server.grpc.FilesMetadata.Builder builderForValue) {
if (filesMetadataBuilder_ == null) {
filesMetadata_ = builderForValue.build();
} else {
filesMetadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
*/
public Builder mergeFilesMetadata(com.yelp.nrtsearch.server.grpc.FilesMetadata value) {
if (filesMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
filesMetadata_ != null &&
filesMetadata_ != com.yelp.nrtsearch.server.grpc.FilesMetadata.getDefaultInstance()) {
getFilesMetadataBuilder().mergeFrom(value);
} else {
filesMetadata_ = value;
}
} else {
filesMetadataBuilder_.mergeFrom(value);
}
if (filesMetadata_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
*/
public Builder clearFilesMetadata() {
bitField0_ = (bitField0_ & ~0x00000010);
filesMetadata_ = null;
if (filesMetadataBuilder_ != null) {
filesMetadataBuilder_.dispose();
filesMetadataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
*/
public com.yelp.nrtsearch.server.grpc.FilesMetadata.Builder getFilesMetadataBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getFilesMetadataFieldBuilder().getBuilder();
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
*/
public com.yelp.nrtsearch.server.grpc.FilesMetadataOrBuilder getFilesMetadataOrBuilder() {
if (filesMetadataBuilder_ != null) {
return filesMetadataBuilder_.getMessageOrBuilder();
} else {
return filesMetadata_ == null ?
com.yelp.nrtsearch.server.grpc.FilesMetadata.getDefaultInstance() : filesMetadata_;
}
}
/**
*
*fileMetadata
*
*
* .luceneserver.FilesMetadata filesMetadata = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FilesMetadata, com.yelp.nrtsearch.server.grpc.FilesMetadata.Builder, com.yelp.nrtsearch.server.grpc.FilesMetadataOrBuilder>
getFilesMetadataFieldBuilder() {
if (filesMetadataBuilder_ == null) {
filesMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FilesMetadata, com.yelp.nrtsearch.server.grpc.FilesMetadata.Builder, com.yelp.nrtsearch.server.grpc.FilesMetadataOrBuilder>(
getFilesMetadata(),
getParentForChildren(),
isClean());
filesMetadata_ = null;
}
return filesMetadataBuilder_;
}
private int completedMergeFilesSize_ ;
/**
*
*completed merged files
*
*
* int32 completedMergeFilesSize = 6;
* @return The completedMergeFilesSize.
*/
@java.lang.Override
public int getCompletedMergeFilesSize() {
return completedMergeFilesSize_;
}
/**
*
*completed merged files
*
*
* int32 completedMergeFilesSize = 6;
* @param value The completedMergeFilesSize to set.
* @return This builder for chaining.
*/
public Builder setCompletedMergeFilesSize(int value) {
completedMergeFilesSize_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*completed merged files
*
*
* int32 completedMergeFilesSize = 6;
* @return This builder for chaining.
*/
public Builder clearCompletedMergeFilesSize() {
bitField0_ = (bitField0_ & ~0x00000020);
completedMergeFilesSize_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList completedMergeFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCompletedMergeFilesIsMutable() {
if (!completedMergeFiles_.isModifiable()) {
completedMergeFiles_ = new com.google.protobuf.LazyStringArrayList(completedMergeFiles_);
}
bitField0_ |= 0x00000040;
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @return A list containing the completedMergeFiles.
*/
public com.google.protobuf.ProtocolStringList
getCompletedMergeFilesList() {
completedMergeFiles_.makeImmutable();
return completedMergeFiles_;
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @return The count of completedMergeFiles.
*/
public int getCompletedMergeFilesCount() {
return completedMergeFiles_.size();
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @param index The index of the element to return.
* @return The completedMergeFiles at the given index.
*/
public java.lang.String getCompletedMergeFiles(int index) {
return completedMergeFiles_.get(index);
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @param index The index of the value to return.
* @return The bytes of the completedMergeFiles at the given index.
*/
public com.google.protobuf.ByteString
getCompletedMergeFilesBytes(int index) {
return completedMergeFiles_.getByteString(index);
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @param index The index to set the value at.
* @param value The completedMergeFiles to set.
* @return This builder for chaining.
*/
public Builder setCompletedMergeFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCompletedMergeFilesIsMutable();
completedMergeFiles_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @param value The completedMergeFiles to add.
* @return This builder for chaining.
*/
public Builder addCompletedMergeFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCompletedMergeFilesIsMutable();
completedMergeFiles_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @param values The completedMergeFiles to add.
* @return This builder for chaining.
*/
public Builder addAllCompletedMergeFiles(
java.lang.Iterable values) {
ensureCompletedMergeFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, completedMergeFiles_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @return This builder for chaining.
*/
public Builder clearCompletedMergeFiles() {
completedMergeFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);;
onChanged();
return this;
}
/**
*
*names of files that finished merge
*
*
* repeated string completedMergeFiles = 7;
* @param value The bytes of the completedMergeFiles to add.
* @return This builder for chaining.
*/
public Builder addCompletedMergeFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureCompletedMergeFilesIsMutable();
completedMergeFiles_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private long primaryGen_ ;
/**
*
*primary Gen
*
*
* int64 primaryGen = 8;
* @return The primaryGen.
*/
@java.lang.Override
public long getPrimaryGen() {
return primaryGen_;
}
/**
*
*primary Gen
*
*
* int64 primaryGen = 8;
* @param value The primaryGen to set.
* @return This builder for chaining.
*/
public Builder setPrimaryGen(long value) {
primaryGen_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*primary Gen
*
*
* int64 primaryGen = 8;
* @return This builder for chaining.
*/
public Builder clearPrimaryGen() {
bitField0_ = (bitField0_ & ~0x00000080);
primaryGen_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:luceneserver.CopyState)
}
// @@protoc_insertion_point(class_scope:luceneserver.CopyState)
private static final com.yelp.nrtsearch.server.grpc.CopyState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.CopyState();
}
public static com.yelp.nrtsearch.server.grpc.CopyState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CopyState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CopyState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}