com.yelp.nrtsearch.server.grpc.FileMetadata 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.FileMetadata}
*/
public final class FileMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.FileMetadata)
FileMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileMetadata.newBuilder() to construct.
private FileMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileMetadata() {
fileName_ = "";
header_ = com.google.protobuf.ByteString.EMPTY;
footer_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FileMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FileMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.FileMetadata.class, com.yelp.nrtsearch.server.grpc.FileMetadata.Builder.class);
}
public static final int FILENAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object fileName_ = "";
/**
*
*file Name
*
*
* string fileName = 1;
* @return The fileName.
*/
@java.lang.Override
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileName_ = s;
return s;
}
}
/**
*
*file Name
*
*
* string fileName = 1;
* @return The bytes for fileName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LEN_FIELD_NUMBER = 2;
private long len_ = 0L;
/**
*
*file checksum
*
*
* int64 len = 2;
* @return The len.
*/
@java.lang.Override
public long getLen() {
return len_;
}
public static final int CHECKSUM_FIELD_NUMBER = 3;
private long checksum_ = 0L;
/**
*
*file checksum
*
*
* int64 checksum = 3;
* @return The checksum.
*/
@java.lang.Override
public long getChecksum() {
return checksum_;
}
public static final int HEADERLENGTH_FIELD_NUMBER = 4;
private int headerLength_ = 0;
/**
*
*file header length;
*
*
* int32 headerLength = 4;
* @return The headerLength.
*/
@java.lang.Override
public int getHeaderLength() {
return headerLength_;
}
public static final int HEADER_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString header_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*file header;
*
*
* bytes header = 5;
* @return The header.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHeader() {
return header_;
}
public static final int FOOTERLENGTH_FIELD_NUMBER = 6;
private int footerLength_ = 0;
/**
*
*file header length;
*
*
* int32 footerLength = 6;
* @return The footerLength.
*/
@java.lang.Override
public int getFooterLength() {
return footerLength_;
}
public static final int FOOTER_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString footer_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*file header;
*
*
* bytes footer = 7;
* @return The footer.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFooter() {
return footer_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileName_);
}
if (len_ != 0L) {
output.writeInt64(2, len_);
}
if (checksum_ != 0L) {
output.writeInt64(3, checksum_);
}
if (headerLength_ != 0) {
output.writeInt32(4, headerLength_);
}
if (!header_.isEmpty()) {
output.writeBytes(5, header_);
}
if (footerLength_ != 0) {
output.writeInt32(6, footerLength_);
}
if (!footer_.isEmpty()) {
output.writeBytes(7, footer_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileName_);
}
if (len_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, len_);
}
if (checksum_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, checksum_);
}
if (headerLength_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, headerLength_);
}
if (!header_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, header_);
}
if (footerLength_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, footerLength_);
}
if (!footer_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, footer_);
}
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.FileMetadata)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.FileMetadata other = (com.yelp.nrtsearch.server.grpc.FileMetadata) obj;
if (!getFileName()
.equals(other.getFileName())) return false;
if (getLen()
!= other.getLen()) return false;
if (getChecksum()
!= other.getChecksum()) return false;
if (getHeaderLength()
!= other.getHeaderLength()) return false;
if (!getHeader()
.equals(other.getHeader())) return false;
if (getFooterLength()
!= other.getFooterLength()) return false;
if (!getFooter()
.equals(other.getFooter())) 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) + FILENAME_FIELD_NUMBER;
hash = (53 * hash) + getFileName().hashCode();
hash = (37 * hash) + LEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLen());
hash = (37 * hash) + CHECKSUM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getChecksum());
hash = (37 * hash) + HEADERLENGTH_FIELD_NUMBER;
hash = (53 * hash) + getHeaderLength();
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
hash = (37 * hash) + FOOTERLENGTH_FIELD_NUMBER;
hash = (53 * hash) + getFooterLength();
hash = (37 * hash) + FOOTER_FIELD_NUMBER;
hash = (53 * hash) + getFooter().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.FileMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FileMetadata 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.FileMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FileMetadata 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.FileMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FileMetadata 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.FileMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.FileMetadata 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.FileMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.FileMetadata 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.FileMetadata 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.FileMetadata 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.FileMetadata 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.FileMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.FileMetadata)
com.yelp.nrtsearch.server.grpc.FileMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FileMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FileMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.FileMetadata.class, com.yelp.nrtsearch.server.grpc.FileMetadata.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.FileMetadata.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
fileName_ = "";
len_ = 0L;
checksum_ = 0L;
headerLength_ = 0;
header_ = com.google.protobuf.ByteString.EMPTY;
footerLength_ = 0;
footer_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_FileMetadata_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FileMetadata getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.FileMetadata.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FileMetadata build() {
com.yelp.nrtsearch.server.grpc.FileMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FileMetadata buildPartial() {
com.yelp.nrtsearch.server.grpc.FileMetadata result = new com.yelp.nrtsearch.server.grpc.FileMetadata(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.FileMetadata result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.fileName_ = fileName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.len_ = len_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.checksum_ = checksum_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.headerLength_ = headerLength_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.header_ = header_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.footerLength_ = footerLength_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.footer_ = footer_;
}
}
@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.FileMetadata) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.FileMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.FileMetadata other) {
if (other == com.yelp.nrtsearch.server.grpc.FileMetadata.getDefaultInstance()) return this;
if (!other.getFileName().isEmpty()) {
fileName_ = other.fileName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getLen() != 0L) {
setLen(other.getLen());
}
if (other.getChecksum() != 0L) {
setChecksum(other.getChecksum());
}
if (other.getHeaderLength() != 0) {
setHeaderLength(other.getHeaderLength());
}
if (other.getHeader() != com.google.protobuf.ByteString.EMPTY) {
setHeader(other.getHeader());
}
if (other.getFooterLength() != 0) {
setFooterLength(other.getFooterLength());
}
if (other.getFooter() != com.google.protobuf.ByteString.EMPTY) {
setFooter(other.getFooter());
}
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: {
fileName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
len_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
checksum_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
headerLength_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
header_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
footerLength_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
footer_ = input.readBytes();
bitField0_ |= 0x00000040;
break;
} // case 58
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 java.lang.Object fileName_ = "";
/**
*
*file Name
*
*
* string fileName = 1;
* @return The fileName.
*/
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*file Name
*
*
* string fileName = 1;
* @return The bytes for fileName.
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*file Name
*
*
* string fileName = 1;
* @param value The fileName to set.
* @return This builder for chaining.
*/
public Builder setFileName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
fileName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*file Name
*
*
* string fileName = 1;
* @return This builder for chaining.
*/
public Builder clearFileName() {
fileName_ = getDefaultInstance().getFileName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*file Name
*
*
* string fileName = 1;
* @param value The bytes for fileName to set.
* @return This builder for chaining.
*/
public Builder setFileNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
fileName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long len_ ;
/**
*
*file checksum
*
*
* int64 len = 2;
* @return The len.
*/
@java.lang.Override
public long getLen() {
return len_;
}
/**
*
*file checksum
*
*
* int64 len = 2;
* @param value The len to set.
* @return This builder for chaining.
*/
public Builder setLen(long value) {
len_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*file checksum
*
*
* int64 len = 2;
* @return This builder for chaining.
*/
public Builder clearLen() {
bitField0_ = (bitField0_ & ~0x00000002);
len_ = 0L;
onChanged();
return this;
}
private long checksum_ ;
/**
*
*file checksum
*
*
* int64 checksum = 3;
* @return The checksum.
*/
@java.lang.Override
public long getChecksum() {
return checksum_;
}
/**
*
*file checksum
*
*
* int64 checksum = 3;
* @param value The checksum to set.
* @return This builder for chaining.
*/
public Builder setChecksum(long value) {
checksum_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*file checksum
*
*
* int64 checksum = 3;
* @return This builder for chaining.
*/
public Builder clearChecksum() {
bitField0_ = (bitField0_ & ~0x00000004);
checksum_ = 0L;
onChanged();
return this;
}
private int headerLength_ ;
/**
*
*file header length;
*
*
* int32 headerLength = 4;
* @return The headerLength.
*/
@java.lang.Override
public int getHeaderLength() {
return headerLength_;
}
/**
*
*file header length;
*
*
* int32 headerLength = 4;
* @param value The headerLength to set.
* @return This builder for chaining.
*/
public Builder setHeaderLength(int value) {
headerLength_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*file header length;
*
*
* int32 headerLength = 4;
* @return This builder for chaining.
*/
public Builder clearHeaderLength() {
bitField0_ = (bitField0_ & ~0x00000008);
headerLength_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString header_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*file header;
*
*
* bytes header = 5;
* @return The header.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHeader() {
return header_;
}
/**
*
*file header;
*
*
* bytes header = 5;
* @param value The header to set.
* @return This builder for chaining.
*/
public Builder setHeader(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
header_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*file header;
*
*
* bytes header = 5;
* @return This builder for chaining.
*/
public Builder clearHeader() {
bitField0_ = (bitField0_ & ~0x00000010);
header_ = getDefaultInstance().getHeader();
onChanged();
return this;
}
private int footerLength_ ;
/**
*
*file header length;
*
*
* int32 footerLength = 6;
* @return The footerLength.
*/
@java.lang.Override
public int getFooterLength() {
return footerLength_;
}
/**
*
*file header length;
*
*
* int32 footerLength = 6;
* @param value The footerLength to set.
* @return This builder for chaining.
*/
public Builder setFooterLength(int value) {
footerLength_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*file header length;
*
*
* int32 footerLength = 6;
* @return This builder for chaining.
*/
public Builder clearFooterLength() {
bitField0_ = (bitField0_ & ~0x00000020);
footerLength_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString footer_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*file header;
*
*
* bytes footer = 7;
* @return The footer.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFooter() {
return footer_;
}
/**
*
*file header;
*
*
* bytes footer = 7;
* @param value The footer to set.
* @return This builder for chaining.
*/
public Builder setFooter(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
footer_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*file header;
*
*
* bytes footer = 7;
* @return This builder for chaining.
*/
public Builder clearFooter() {
bitField0_ = (bitField0_ & ~0x00000040);
footer_ = getDefaultInstance().getFooter();
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.FileMetadata)
}
// @@protoc_insertion_point(class_scope:luceneserver.FileMetadata)
private static final com.yelp.nrtsearch.server.grpc.FileMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.FileMetadata();
}
public static com.yelp.nrtsearch.server.grpc.FileMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileMetadata 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.FileMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}