com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse 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
// 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;
/**
* Protobuf type {@code luceneserver.CreateSnapshotResponse}
*/
public final class CreateSnapshotResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.CreateSnapshotResponse)
CreateSnapshotResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSnapshotResponse.newBuilder() to construct.
private CreateSnapshotResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSnapshotResponse() {
indexFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
taxonomyFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
stateFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSnapshotResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateSnapshotResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateSnapshotResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse.class, com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse.Builder.class);
}
private int bitField0_;
public static final int INDEXFILES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList indexFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string indexFiles = 1;
* @return A list containing the indexFiles.
*/
public com.google.protobuf.ProtocolStringList
getIndexFilesList() {
return indexFiles_;
}
/**
* repeated string indexFiles = 1;
* @return The count of indexFiles.
*/
public int getIndexFilesCount() {
return indexFiles_.size();
}
/**
* repeated string indexFiles = 1;
* @param index The index of the element to return.
* @return The indexFiles at the given index.
*/
public java.lang.String getIndexFiles(int index) {
return indexFiles_.get(index);
}
/**
* repeated string indexFiles = 1;
* @param index The index of the value to return.
* @return The bytes of the indexFiles at the given index.
*/
public com.google.protobuf.ByteString
getIndexFilesBytes(int index) {
return indexFiles_.getByteString(index);
}
public static final int TAXONOMYFILES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList taxonomyFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string taxonomyFiles = 2;
* @return A list containing the taxonomyFiles.
*/
public com.google.protobuf.ProtocolStringList
getTaxonomyFilesList() {
return taxonomyFiles_;
}
/**
* repeated string taxonomyFiles = 2;
* @return The count of taxonomyFiles.
*/
public int getTaxonomyFilesCount() {
return taxonomyFiles_.size();
}
/**
* repeated string taxonomyFiles = 2;
* @param index The index of the element to return.
* @return The taxonomyFiles at the given index.
*/
public java.lang.String getTaxonomyFiles(int index) {
return taxonomyFiles_.get(index);
}
/**
* repeated string taxonomyFiles = 2;
* @param index The index of the value to return.
* @return The bytes of the taxonomyFiles at the given index.
*/
public com.google.protobuf.ByteString
getTaxonomyFilesBytes(int index) {
return taxonomyFiles_.getByteString(index);
}
public static final int STATEFILES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList stateFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string stateFiles = 3;
* @return A list containing the stateFiles.
*/
public com.google.protobuf.ProtocolStringList
getStateFilesList() {
return stateFiles_;
}
/**
* repeated string stateFiles = 3;
* @return The count of stateFiles.
*/
public int getStateFilesCount() {
return stateFiles_.size();
}
/**
* repeated string stateFiles = 3;
* @param index The index of the element to return.
* @return The stateFiles at the given index.
*/
public java.lang.String getStateFiles(int index) {
return stateFiles_.get(index);
}
/**
* repeated string stateFiles = 3;
* @param index The index of the value to return.
* @return The bytes of the stateFiles at the given index.
*/
public com.google.protobuf.ByteString
getStateFilesBytes(int index) {
return stateFiles_.getByteString(index);
}
public static final int SNAPSHOTID_FIELD_NUMBER = 4;
private com.yelp.nrtsearch.server.grpc.SnapshotId snapshotId_;
/**
* .luceneserver.SnapshotId snapshotId = 4;
* @return Whether the snapshotId field is set.
*/
@java.lang.Override
public boolean hasSnapshotId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
* @return The snapshotId.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SnapshotId getSnapshotId() {
return snapshotId_ == null ? com.yelp.nrtsearch.server.grpc.SnapshotId.getDefaultInstance() : snapshotId_;
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SnapshotIdOrBuilder getSnapshotIdOrBuilder() {
return snapshotId_ == null ? com.yelp.nrtsearch.server.grpc.SnapshotId.getDefaultInstance() : snapshotId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < indexFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexFiles_.getRaw(i));
}
for (int i = 0; i < taxonomyFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, taxonomyFiles_.getRaw(i));
}
for (int i = 0; i < stateFiles_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateFiles_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getSnapshotId());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < indexFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(indexFiles_.getRaw(i));
}
size += dataSize;
size += 1 * getIndexFilesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < taxonomyFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(taxonomyFiles_.getRaw(i));
}
size += dataSize;
size += 1 * getTaxonomyFilesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < stateFiles_.size(); i++) {
dataSize += computeStringSizeNoTag(stateFiles_.getRaw(i));
}
size += dataSize;
size += 1 * getStateFilesList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSnapshotId());
}
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.CreateSnapshotResponse)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse other = (com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse) obj;
if (!getIndexFilesList()
.equals(other.getIndexFilesList())) return false;
if (!getTaxonomyFilesList()
.equals(other.getTaxonomyFilesList())) return false;
if (!getStateFilesList()
.equals(other.getStateFilesList())) return false;
if (hasSnapshotId() != other.hasSnapshotId()) return false;
if (hasSnapshotId()) {
if (!getSnapshotId()
.equals(other.getSnapshotId())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getIndexFilesCount() > 0) {
hash = (37 * hash) + INDEXFILES_FIELD_NUMBER;
hash = (53 * hash) + getIndexFilesList().hashCode();
}
if (getTaxonomyFilesCount() > 0) {
hash = (37 * hash) + TAXONOMYFILES_FIELD_NUMBER;
hash = (53 * hash) + getTaxonomyFilesList().hashCode();
}
if (getStateFilesCount() > 0) {
hash = (37 * hash) + STATEFILES_FIELD_NUMBER;
hash = (53 * hash) + getStateFilesList().hashCode();
}
if (hasSnapshotId()) {
hash = (37 * hash) + SNAPSHOTID_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse 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.CreateSnapshotResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse 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.CreateSnapshotResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse 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.CreateSnapshotResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse 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.CreateSnapshotResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse 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.CreateSnapshotResponse 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.CreateSnapshotResponse 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.CreateSnapshotResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code luceneserver.CreateSnapshotResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.CreateSnapshotResponse)
com.yelp.nrtsearch.server.grpc.CreateSnapshotResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateSnapshotResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateSnapshotResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse.class, com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSnapshotIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
taxonomyFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
stateFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
snapshotId_ = null;
if (snapshotIdBuilder_ != null) {
snapshotIdBuilder_.dispose();
snapshotIdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_CreateSnapshotResponse_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse build() {
com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse buildPartial() {
com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse result = new com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
indexFiles_.makeImmutable();
result.indexFiles_ = indexFiles_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
taxonomyFiles_.makeImmutable();
result.taxonomyFiles_ = taxonomyFiles_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
stateFiles_.makeImmutable();
result.stateFiles_ = stateFiles_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.snapshotId_ = snapshotIdBuilder_ == null
? snapshotId_
: snapshotIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.CreateSnapshotResponse) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse other) {
if (other == com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse.getDefaultInstance()) return this;
if (!other.indexFiles_.isEmpty()) {
if (indexFiles_.isEmpty()) {
indexFiles_ = other.indexFiles_;
bitField0_ |= 0x00000001;
} else {
ensureIndexFilesIsMutable();
indexFiles_.addAll(other.indexFiles_);
}
onChanged();
}
if (!other.taxonomyFiles_.isEmpty()) {
if (taxonomyFiles_.isEmpty()) {
taxonomyFiles_ = other.taxonomyFiles_;
bitField0_ |= 0x00000002;
} else {
ensureTaxonomyFilesIsMutable();
taxonomyFiles_.addAll(other.taxonomyFiles_);
}
onChanged();
}
if (!other.stateFiles_.isEmpty()) {
if (stateFiles_.isEmpty()) {
stateFiles_ = other.stateFiles_;
bitField0_ |= 0x00000004;
} else {
ensureStateFilesIsMutable();
stateFiles_.addAll(other.stateFiles_);
}
onChanged();
}
if (other.hasSnapshotId()) {
mergeSnapshotId(other.getSnapshotId());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureIndexFilesIsMutable();
indexFiles_.add(s);
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureTaxonomyFilesIsMutable();
taxonomyFiles_.add(s);
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureStateFilesIsMutable();
stateFiles_.add(s);
break;
} // case 26
case 34: {
input.readMessage(
getSnapshotIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList indexFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIndexFilesIsMutable() {
if (!indexFiles_.isModifiable()) {
indexFiles_ = new com.google.protobuf.LazyStringArrayList(indexFiles_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string indexFiles = 1;
* @return A list containing the indexFiles.
*/
public com.google.protobuf.ProtocolStringList
getIndexFilesList() {
indexFiles_.makeImmutable();
return indexFiles_;
}
/**
* repeated string indexFiles = 1;
* @return The count of indexFiles.
*/
public int getIndexFilesCount() {
return indexFiles_.size();
}
/**
* repeated string indexFiles = 1;
* @param index The index of the element to return.
* @return The indexFiles at the given index.
*/
public java.lang.String getIndexFiles(int index) {
return indexFiles_.get(index);
}
/**
* repeated string indexFiles = 1;
* @param index The index of the value to return.
* @return The bytes of the indexFiles at the given index.
*/
public com.google.protobuf.ByteString
getIndexFilesBytes(int index) {
return indexFiles_.getByteString(index);
}
/**
* repeated string indexFiles = 1;
* @param index The index to set the value at.
* @param value The indexFiles to set.
* @return This builder for chaining.
*/
public Builder setIndexFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIndexFilesIsMutable();
indexFiles_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string indexFiles = 1;
* @param value The indexFiles to add.
* @return This builder for chaining.
*/
public Builder addIndexFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIndexFilesIsMutable();
indexFiles_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string indexFiles = 1;
* @param values The indexFiles to add.
* @return This builder for chaining.
*/
public Builder addAllIndexFiles(
java.lang.Iterable values) {
ensureIndexFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indexFiles_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string indexFiles = 1;
* @return This builder for chaining.
*/
public Builder clearIndexFiles() {
indexFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string indexFiles = 1;
* @param value The bytes of the indexFiles to add.
* @return This builder for chaining.
*/
public Builder addIndexFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureIndexFilesIsMutable();
indexFiles_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList taxonomyFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTaxonomyFilesIsMutable() {
if (!taxonomyFiles_.isModifiable()) {
taxonomyFiles_ = new com.google.protobuf.LazyStringArrayList(taxonomyFiles_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated string taxonomyFiles = 2;
* @return A list containing the taxonomyFiles.
*/
public com.google.protobuf.ProtocolStringList
getTaxonomyFilesList() {
taxonomyFiles_.makeImmutable();
return taxonomyFiles_;
}
/**
* repeated string taxonomyFiles = 2;
* @return The count of taxonomyFiles.
*/
public int getTaxonomyFilesCount() {
return taxonomyFiles_.size();
}
/**
* repeated string taxonomyFiles = 2;
* @param index The index of the element to return.
* @return The taxonomyFiles at the given index.
*/
public java.lang.String getTaxonomyFiles(int index) {
return taxonomyFiles_.get(index);
}
/**
* repeated string taxonomyFiles = 2;
* @param index The index of the value to return.
* @return The bytes of the taxonomyFiles at the given index.
*/
public com.google.protobuf.ByteString
getTaxonomyFilesBytes(int index) {
return taxonomyFiles_.getByteString(index);
}
/**
* repeated string taxonomyFiles = 2;
* @param index The index to set the value at.
* @param value The taxonomyFiles to set.
* @return This builder for chaining.
*/
public Builder setTaxonomyFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTaxonomyFilesIsMutable();
taxonomyFiles_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string taxonomyFiles = 2;
* @param value The taxonomyFiles to add.
* @return This builder for chaining.
*/
public Builder addTaxonomyFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTaxonomyFilesIsMutable();
taxonomyFiles_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string taxonomyFiles = 2;
* @param values The taxonomyFiles to add.
* @return This builder for chaining.
*/
public Builder addAllTaxonomyFiles(
java.lang.Iterable values) {
ensureTaxonomyFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, taxonomyFiles_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string taxonomyFiles = 2;
* @return This builder for chaining.
*/
public Builder clearTaxonomyFiles() {
taxonomyFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
* repeated string taxonomyFiles = 2;
* @param value The bytes of the taxonomyFiles to add.
* @return This builder for chaining.
*/
public Builder addTaxonomyFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureTaxonomyFilesIsMutable();
taxonomyFiles_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList stateFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureStateFilesIsMutable() {
if (!stateFiles_.isModifiable()) {
stateFiles_ = new com.google.protobuf.LazyStringArrayList(stateFiles_);
}
bitField0_ |= 0x00000004;
}
/**
* repeated string stateFiles = 3;
* @return A list containing the stateFiles.
*/
public com.google.protobuf.ProtocolStringList
getStateFilesList() {
stateFiles_.makeImmutable();
return stateFiles_;
}
/**
* repeated string stateFiles = 3;
* @return The count of stateFiles.
*/
public int getStateFilesCount() {
return stateFiles_.size();
}
/**
* repeated string stateFiles = 3;
* @param index The index of the element to return.
* @return The stateFiles at the given index.
*/
public java.lang.String getStateFiles(int index) {
return stateFiles_.get(index);
}
/**
* repeated string stateFiles = 3;
* @param index The index of the value to return.
* @return The bytes of the stateFiles at the given index.
*/
public com.google.protobuf.ByteString
getStateFilesBytes(int index) {
return stateFiles_.getByteString(index);
}
/**
* repeated string stateFiles = 3;
* @param index The index to set the value at.
* @param value The stateFiles to set.
* @return This builder for chaining.
*/
public Builder setStateFiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStateFilesIsMutable();
stateFiles_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated string stateFiles = 3;
* @param value The stateFiles to add.
* @return This builder for chaining.
*/
public Builder addStateFiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStateFilesIsMutable();
stateFiles_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated string stateFiles = 3;
* @param values The stateFiles to add.
* @return This builder for chaining.
*/
public Builder addAllStateFiles(
java.lang.Iterable values) {
ensureStateFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stateFiles_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated string stateFiles = 3;
* @return This builder for chaining.
*/
public Builder clearStateFiles() {
stateFiles_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
* repeated string stateFiles = 3;
* @param value The bytes of the stateFiles to add.
* @return This builder for chaining.
*/
public Builder addStateFilesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureStateFilesIsMutable();
stateFiles_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.yelp.nrtsearch.server.grpc.SnapshotId snapshotId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SnapshotId, com.yelp.nrtsearch.server.grpc.SnapshotId.Builder, com.yelp.nrtsearch.server.grpc.SnapshotIdOrBuilder> snapshotIdBuilder_;
/**
* .luceneserver.SnapshotId snapshotId = 4;
* @return Whether the snapshotId field is set.
*/
public boolean hasSnapshotId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
* @return The snapshotId.
*/
public com.yelp.nrtsearch.server.grpc.SnapshotId getSnapshotId() {
if (snapshotIdBuilder_ == null) {
return snapshotId_ == null ? com.yelp.nrtsearch.server.grpc.SnapshotId.getDefaultInstance() : snapshotId_;
} else {
return snapshotIdBuilder_.getMessage();
}
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
*/
public Builder setSnapshotId(com.yelp.nrtsearch.server.grpc.SnapshotId value) {
if (snapshotIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
snapshotId_ = value;
} else {
snapshotIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
*/
public Builder setSnapshotId(
com.yelp.nrtsearch.server.grpc.SnapshotId.Builder builderForValue) {
if (snapshotIdBuilder_ == null) {
snapshotId_ = builderForValue.build();
} else {
snapshotIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
*/
public Builder mergeSnapshotId(com.yelp.nrtsearch.server.grpc.SnapshotId value) {
if (snapshotIdBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
snapshotId_ != null &&
snapshotId_ != com.yelp.nrtsearch.server.grpc.SnapshotId.getDefaultInstance()) {
getSnapshotIdBuilder().mergeFrom(value);
} else {
snapshotId_ = value;
}
} else {
snapshotIdBuilder_.mergeFrom(value);
}
if (snapshotId_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
*/
public Builder clearSnapshotId() {
bitField0_ = (bitField0_ & ~0x00000008);
snapshotId_ = null;
if (snapshotIdBuilder_ != null) {
snapshotIdBuilder_.dispose();
snapshotIdBuilder_ = null;
}
onChanged();
return this;
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
*/
public com.yelp.nrtsearch.server.grpc.SnapshotId.Builder getSnapshotIdBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getSnapshotIdFieldBuilder().getBuilder();
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
*/
public com.yelp.nrtsearch.server.grpc.SnapshotIdOrBuilder getSnapshotIdOrBuilder() {
if (snapshotIdBuilder_ != null) {
return snapshotIdBuilder_.getMessageOrBuilder();
} else {
return snapshotId_ == null ?
com.yelp.nrtsearch.server.grpc.SnapshotId.getDefaultInstance() : snapshotId_;
}
}
/**
* .luceneserver.SnapshotId snapshotId = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SnapshotId, com.yelp.nrtsearch.server.grpc.SnapshotId.Builder, com.yelp.nrtsearch.server.grpc.SnapshotIdOrBuilder>
getSnapshotIdFieldBuilder() {
if (snapshotIdBuilder_ == null) {
snapshotIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SnapshotId, com.yelp.nrtsearch.server.grpc.SnapshotId.Builder, com.yelp.nrtsearch.server.grpc.SnapshotIdOrBuilder>(
getSnapshotId(),
getParentForChildren(),
isClean());
snapshotId_ = null;
}
return snapshotIdBuilder_;
}
@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.CreateSnapshotResponse)
}
// @@protoc_insertion_point(class_scope:luceneserver.CreateSnapshotResponse)
private static final com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse();
}
public static com.yelp.nrtsearch.server.grpc.CreateSnapshotResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSnapshotResponse 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.CreateSnapshotResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}