public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFileInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getFileInfo()); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof alluxio.grpc.GetFileInfoPResponse)) { return super.equals(obj); } alluxio.grpc.GetFileInfoPResponse other = (alluxio.grpc.GetFileInfoPResponse) obj; boolean result = true; result = result && (hasFileInfo() == other.hasFileInfo()); if (hasFileInfo()) { result = result && getFileInfo() .equals(other.getFileInfo()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFileInfo()) { hash = (37 * hash) + FILEINFO_FIELD_NUMBER; hash = (53 * hash) + getFileInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(alluxio.grpc.GetFileInfoPResponse other) { if (other == alluxio.grpc.GetFileInfoPResponse.getDefaultInstance()) return this; if (other.hasFileInfo()) { mergeFileInfo(other.getFileInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * @param fileId the id of the file for which to get the {@link FileInfo} * @return the file info for the given file id */ public FileInfo getFileInfo(final long fileId) throws IOException { return retryRPC(() -> GrpcUtils.fromProto(mClient .getFileInfo(GetFileInfoPRequest.newBuilder().setFileId(fileId).build()).getFileInfo())); }
/** * @param fileId the id of the file for which to get the {@link FileInfo} * @return the file info for the given file id */ public FileInfo getFileInfo(final long fileId) throws IOException { return retryRPC(() -> GrpcUtils.fromProto(mClient .getFileInfo(GetFileInfoPRequest.newBuilder().setFileId(fileId).build()).getFileInfo())); }