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; }
/** * @return {@link FileSystemMasterCommonPOptions} with default values for master */ private static FileSystemMasterCommonPOptions commonDefaults() { return FileSystemMasterCommonPOptions.newBuilder() .setTtl(ServerConfiguration.getLong(PropertyKey.USER_FILE_CREATE_TTL)) .setTtlAction( ServerConfiguration.getEnum(PropertyKey.USER_FILE_CREATE_TTL_ACTION, TtlAction.class)) .setSyncIntervalMs(ServerConfiguration.getMs(PropertyKey.USER_FILE_METADATA_SYNC_INTERVAL)) .build(); }