com.yelp.nrtsearch.server.grpc.FilesMetadata 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.FilesMetadata}
*/
public final class FilesMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.FilesMetadata)
FilesMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use FilesMetadata.newBuilder() to construct.
private FilesMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FilesMetadata() {
fileMetadata_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FilesMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FilesMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FilesMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.FilesMetadata.class, com.yelp.nrtsearch.server.grpc.FilesMetadata.Builder.class);
}
public static final int NUMFILES_FIELD_NUMBER = 1;
private int numFiles_ = 0;
/**
*
*number of files int this set
*
*
* int32 numFiles = 1;
* @return The numFiles.
*/
@java.lang.Override
public int getNumFiles() {
return numFiles_;
}
public static final int FILEMETADATA_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List fileMetadata_;
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
@java.lang.Override
public java.util.List getFileMetadataList() {
return fileMetadata_;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
@java.lang.Override
public java.util.List extends com.yelp.nrtsearch.server.grpc.FileMetadataOrBuilder>
getFileMetadataOrBuilderList() {
return fileMetadata_;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
@java.lang.Override
public int getFileMetadataCount() {
return fileMetadata_.size();
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FileMetadata getFileMetadata(int index) {
return fileMetadata_.get(index);
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FileMetadataOrBuilder getFileMetadataOrBuilder(
int index) {
return fileMetadata_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (numFiles_ != 0) {
output.writeInt32(1, numFiles_);
}
for (int i = 0; i < fileMetadata_.size(); i++) {
output.writeMessage(2, fileMetadata_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (numFiles_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, numFiles_);
}
for (int i = 0; i < fileMetadata_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, fileMetadata_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yelp.nrtsearch.server.grpc.FilesMetadata)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.FilesMetadata other = (com.yelp.nrtsearch.server.grpc.FilesMetadata) obj;
if (getNumFiles()
!= other.getNumFiles()) return false;
if (!getFileMetadataList()
.equals(other.getFileMetadataList())) 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) + NUMFILES_FIELD_NUMBER;
hash = (53 * hash) + getNumFiles();
if (getFileMetadataCount() > 0) {
hash = (37 * hash) + FILEMETADATA_FIELD_NUMBER;
hash = (53 * hash) + getFileMetadataList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.FilesMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FilesMetadata 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.FilesMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FilesMetadata 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.FilesMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FilesMetadata 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.FilesMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.FilesMetadata 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.FilesMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.FilesMetadata 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.FilesMetadata 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.FilesMetadata 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.FilesMetadata 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.FilesMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.FilesMetadata)
com.yelp.nrtsearch.server.grpc.FilesMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FilesMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FilesMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.FilesMetadata.class, com.yelp.nrtsearch.server.grpc.FilesMetadata.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.FilesMetadata.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
numFiles_ = 0;
if (fileMetadataBuilder_ == null) {
fileMetadata_ = java.util.Collections.emptyList();
} else {
fileMetadata_ = null;
fileMetadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FilesMetadata_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FilesMetadata getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.FilesMetadata.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FilesMetadata build() {
com.yelp.nrtsearch.server.grpc.FilesMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FilesMetadata buildPartial() {
com.yelp.nrtsearch.server.grpc.FilesMetadata result = new com.yelp.nrtsearch.server.grpc.FilesMetadata(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.FilesMetadata result) {
if (fileMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
fileMetadata_ = java.util.Collections.unmodifiableList(fileMetadata_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.fileMetadata_ = fileMetadata_;
} else {
result.fileMetadata_ = fileMetadataBuilder_.build();
}
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.FilesMetadata result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.numFiles_ = numFiles_;
}
}
@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.FilesMetadata) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.FilesMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.FilesMetadata other) {
if (other == com.yelp.nrtsearch.server.grpc.FilesMetadata.getDefaultInstance()) return this;
if (other.getNumFiles() != 0) {
setNumFiles(other.getNumFiles());
}
if (fileMetadataBuilder_ == null) {
if (!other.fileMetadata_.isEmpty()) {
if (fileMetadata_.isEmpty()) {
fileMetadata_ = other.fileMetadata_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFileMetadataIsMutable();
fileMetadata_.addAll(other.fileMetadata_);
}
onChanged();
}
} else {
if (!other.fileMetadata_.isEmpty()) {
if (fileMetadataBuilder_.isEmpty()) {
fileMetadataBuilder_.dispose();
fileMetadataBuilder_ = null;
fileMetadata_ = other.fileMetadata_;
bitField0_ = (bitField0_ & ~0x00000002);
fileMetadataBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFileMetadataFieldBuilder() : null;
} else {
fileMetadataBuilder_.addAllMessages(other.fileMetadata_);
}
}
}
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: {
numFiles_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
com.yelp.nrtsearch.server.grpc.FileMetadata m =
input.readMessage(
com.yelp.nrtsearch.server.grpc.FileMetadata.parser(),
extensionRegistry);
if (fileMetadataBuilder_ == null) {
ensureFileMetadataIsMutable();
fileMetadata_.add(m);
} else {
fileMetadataBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int numFiles_ ;
/**
*
*number of files int this set
*
*
* int32 numFiles = 1;
* @return The numFiles.
*/
@java.lang.Override
public int getNumFiles() {
return numFiles_;
}
/**
*
*number of files int this set
*
*
* int32 numFiles = 1;
* @param value The numFiles to set.
* @return This builder for chaining.
*/
public Builder setNumFiles(int value) {
numFiles_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*number of files int this set
*
*
* int32 numFiles = 1;
* @return This builder for chaining.
*/
public Builder clearNumFiles() {
bitField0_ = (bitField0_ & ~0x00000001);
numFiles_ = 0;
onChanged();
return this;
}
private java.util.List fileMetadata_ =
java.util.Collections.emptyList();
private void ensureFileMetadataIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
fileMetadata_ = new java.util.ArrayList(fileMetadata_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FileMetadata, com.yelp.nrtsearch.server.grpc.FileMetadata.Builder, com.yelp.nrtsearch.server.grpc.FileMetadataOrBuilder> fileMetadataBuilder_;
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public java.util.List getFileMetadataList() {
if (fileMetadataBuilder_ == null) {
return java.util.Collections.unmodifiableList(fileMetadata_);
} else {
return fileMetadataBuilder_.getMessageList();
}
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public int getFileMetadataCount() {
if (fileMetadataBuilder_ == null) {
return fileMetadata_.size();
} else {
return fileMetadataBuilder_.getCount();
}
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public com.yelp.nrtsearch.server.grpc.FileMetadata getFileMetadata(int index) {
if (fileMetadataBuilder_ == null) {
return fileMetadata_.get(index);
} else {
return fileMetadataBuilder_.getMessage(index);
}
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public Builder setFileMetadata(
int index, com.yelp.nrtsearch.server.grpc.FileMetadata value) {
if (fileMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileMetadataIsMutable();
fileMetadata_.set(index, value);
onChanged();
} else {
fileMetadataBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public Builder setFileMetadata(
int index, com.yelp.nrtsearch.server.grpc.FileMetadata.Builder builderForValue) {
if (fileMetadataBuilder_ == null) {
ensureFileMetadataIsMutable();
fileMetadata_.set(index, builderForValue.build());
onChanged();
} else {
fileMetadataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public Builder addFileMetadata(com.yelp.nrtsearch.server.grpc.FileMetadata value) {
if (fileMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileMetadataIsMutable();
fileMetadata_.add(value);
onChanged();
} else {
fileMetadataBuilder_.addMessage(value);
}
return this;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public Builder addFileMetadata(
int index, com.yelp.nrtsearch.server.grpc.FileMetadata value) {
if (fileMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileMetadataIsMutable();
fileMetadata_.add(index, value);
onChanged();
} else {
fileMetadataBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public Builder addFileMetadata(
com.yelp.nrtsearch.server.grpc.FileMetadata.Builder builderForValue) {
if (fileMetadataBuilder_ == null) {
ensureFileMetadataIsMutable();
fileMetadata_.add(builderForValue.build());
onChanged();
} else {
fileMetadataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public Builder addFileMetadata(
int index, com.yelp.nrtsearch.server.grpc.FileMetadata.Builder builderForValue) {
if (fileMetadataBuilder_ == null) {
ensureFileMetadataIsMutable();
fileMetadata_.add(index, builderForValue.build());
onChanged();
} else {
fileMetadataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public Builder addAllFileMetadata(
java.lang.Iterable extends com.yelp.nrtsearch.server.grpc.FileMetadata> values) {
if (fileMetadataBuilder_ == null) {
ensureFileMetadataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fileMetadata_);
onChanged();
} else {
fileMetadataBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public Builder clearFileMetadata() {
if (fileMetadataBuilder_ == null) {
fileMetadata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
fileMetadataBuilder_.clear();
}
return this;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public Builder removeFileMetadata(int index) {
if (fileMetadataBuilder_ == null) {
ensureFileMetadataIsMutable();
fileMetadata_.remove(index);
onChanged();
} else {
fileMetadataBuilder_.remove(index);
}
return this;
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public com.yelp.nrtsearch.server.grpc.FileMetadata.Builder getFileMetadataBuilder(
int index) {
return getFileMetadataFieldBuilder().getBuilder(index);
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public com.yelp.nrtsearch.server.grpc.FileMetadataOrBuilder getFileMetadataOrBuilder(
int index) {
if (fileMetadataBuilder_ == null) {
return fileMetadata_.get(index); } else {
return fileMetadataBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public java.util.List extends com.yelp.nrtsearch.server.grpc.FileMetadataOrBuilder>
getFileMetadataOrBuilderList() {
if (fileMetadataBuilder_ != null) {
return fileMetadataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fileMetadata_);
}
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public com.yelp.nrtsearch.server.grpc.FileMetadata.Builder addFileMetadataBuilder() {
return getFileMetadataFieldBuilder().addBuilder(
com.yelp.nrtsearch.server.grpc.FileMetadata.getDefaultInstance());
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public com.yelp.nrtsearch.server.grpc.FileMetadata.Builder addFileMetadataBuilder(
int index) {
return getFileMetadataFieldBuilder().addBuilder(
index, com.yelp.nrtsearch.server.grpc.FileMetadata.getDefaultInstance());
}
/**
*
*list of metadata for each file
*
*
* repeated .luceneserver.FileMetadata fileMetadata = 2;
*/
public java.util.List
getFileMetadataBuilderList() {
return getFileMetadataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FileMetadata, com.yelp.nrtsearch.server.grpc.FileMetadata.Builder, com.yelp.nrtsearch.server.grpc.FileMetadataOrBuilder>
getFileMetadataFieldBuilder() {
if (fileMetadataBuilder_ == null) {
fileMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FileMetadata, com.yelp.nrtsearch.server.grpc.FileMetadata.Builder, com.yelp.nrtsearch.server.grpc.FileMetadataOrBuilder>(
fileMetadata_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
fileMetadata_ = null;
}
return fileMetadataBuilder_;
}
@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.FilesMetadata)
}
// @@protoc_insertion_point(class_scope:luceneserver.FilesMetadata)
private static final com.yelp.nrtsearch.server.grpc.FilesMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.FilesMetadata();
}
public static com.yelp.nrtsearch.server.grpc.FilesMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FilesMetadata 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.FilesMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}