@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLoadDirectChildren()) { hash = (37 * hash) + LOADDIRECTCHILDREN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLoadDirectChildren()); } if (hasLoadMetadataType()) { hash = (37 * hash) + LOADMETADATATYPE_FIELD_NUMBER; hash = (53 * hash) + loadMetadataType_; } if (hasCommonOptions()) { hash = (37 * hash) + COMMONOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getCommonOptions().hashCode(); } if (hasRecursive()) { hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRecursive()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
result = result && (getRecursive() == other.getRecursive());
@Test public void listStatusOptionsDefaults() { ListStatusPOptions options = FileSystemMasterOptions.listStatusDefaults(); Assert.assertNotNull(options); Assert.assertEquals(LoadMetadataPType.ONCE, options.getLoadMetadataType()); Assert.assertEquals(false, options.getRecursive()); }
public Builder mergeFrom(alluxio.grpc.ListStatusPOptions other) { if (other == alluxio.grpc.ListStatusPOptions.getDefaultInstance()) return this; if (other.hasLoadDirectChildren()) { setLoadDirectChildren(other.getLoadDirectChildren()); } if (other.hasLoadMetadataType()) { setLoadMetadataType(other.getLoadMetadataType()); } if (other.hasCommonOptions()) { mergeCommonOptions(other.getCommonOptions()); } if (other.hasRecursive()) { setRecursive(other.getRecursive()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }