@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSyncIntervalMs()) { hash = (37 * hash) + SYNCINTERVALMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSyncIntervalMs()); } if (hasTtl()) { hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); } if (hasTtlAction()) { hash = (37 * hash) + TTLACTION_FIELD_NUMBER; hash = (53 * hash) + ttlAction_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
private void loadExtractedFields() { com.google.protobuf.GeneratedMessageV3.Builder<?> optionsBuilder = getOptions(); // Populate extracted fields from given options if (optionsBuilder instanceof CreateFilePOptions.Builder) { CreateFilePOptions.Builder fileOptions = (CreateFilePOptions.Builder) optionsBuilder; mMode = Mode.fromProto(fileOptions.getMode()); mRecursive = fileOptions.getRecursive(); mTtl = fileOptions.getCommonOptions().getTtl(); mTtlAction = fileOptions.getCommonOptions().getTtlAction(); } // Populate extracted fields from given options if (optionsBuilder instanceof CreateDirectoryPOptions.Builder) { CreateDirectoryPOptions.Builder dirOptions = (CreateDirectoryPOptions.Builder) optionsBuilder; mMode = Mode.fromProto(dirOptions.getMode()); mRecursive = dirOptions.getRecursive(); mTtl = dirOptions.getCommonOptions().getTtl(); mTtlAction = dirOptions.getCommonOptions().getTtlAction(); } }
public Builder mergeFrom(alluxio.grpc.FileSystemMasterCommonPOptions other) { if (other == alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance()) return this; if (other.hasSyncIntervalMs()) { setSyncIntervalMs(other.getSyncIntervalMs()); } if (other.hasTtl()) { setTtl(other.getTtl()); } if (other.hasTtlAction()) { setTtlAction(other.getTtlAction()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof alluxio.grpc.FileSystemMasterCommonPOptions)) { return super.equals(obj); } alluxio.grpc.FileSystemMasterCommonPOptions other = (alluxio.grpc.FileSystemMasterCommonPOptions) obj; boolean result = true; result = result && (hasSyncIntervalMs() == other.hasSyncIntervalMs()); if (hasSyncIntervalMs()) { result = result && (getSyncIntervalMs() == other.getSyncIntervalMs()); } result = result && (hasTtl() == other.hasTtl()); if (hasTtl()) { result = result && (getTtl() == other.getTtl()); } result = result && (hasTtlAction() == other.hasTtlAction()); if (hasTtlAction()) { result = result && ttlAction_ == other.ttlAction_; } result = result && unknownFields.equals(other.unknownFields); return result; }
.setReplicationMax(options.getReplicationMax()) .setReplicationMin(options.getReplicationMin()) .setTtl(options.getCommonOptions().getTtl()) .setTtlAction(options.getCommonOptions().getTtlAction()) .setParentId(parentId)
LoadMetadataContext.defaults(LoadMetadataPOptions.newBuilder().setCreateAncestors(true) .setCommonOptions(FileSystemMasterCommonPOptions.newBuilder() .setTtl(context.getOptions().getCommonOptions().getTtl()) .setTtlAction(context.getOptions().getCommonOptions().getTtlAction())))); ensureFullPathAndUpdateCache(inodePath);
.setLoadDescendantType(GrpcUtils.toProto(loadDescendantType)) .setCommonOptions(FileSystemMasterCommonPOptions.newBuilder() .setTtl(context.getOptions().getCommonOptions().getTtl()) .setTtlAction(context.getOptions().getCommonOptions().getTtlAction()))); Inode inode;
createFileContext.getOptions() .setCommonOptions(FileSystemMasterCommonPOptions.newBuilder() .setTtl(context.getOptions().getCommonOptions().getTtl()) .setTtlAction(context.getOptions().getCommonOptions().getTtlAction())); createFileContext.setMetadataLoad(true);
.setRecursive(context.getOptions().getCreateAncestors()).setAllowExists(false) .setCommonOptions(FileSystemMasterCommonPOptions.newBuilder() .setTtl(context.getOptions().getCommonOptions().getTtl()) .setTtlAction(context.getOptions().getCommonOptions().getTtlAction())); createDirectoryContext.setMountPoint(mMountTable.isMountPoint(inodePath.getUri()));